mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-23 00:57:47 +01:00
add blank spaces lol
This commit is contained in:
parent
624454c134
commit
37531ee37e
1 changed files with 2 additions and 0 deletions
|
@ -11,8 +11,10 @@ const parseXml = async (videoId, headers) => {
|
||||||
var { data } = await curly.get(`${newApiUrl}?v=${videoId}`, {
|
var { data } = await curly.get(`${newApiUrl}?v=${videoId}`, {
|
||||||
httpHeader: Object.entries(headers).map(([k, v]) => `${k}: ${v}`)
|
httpHeader: Object.entries(headers).map(([k, v]) => `${k}: ${v}`)
|
||||||
});
|
});
|
||||||
|
|
||||||
const json = toJson(data);
|
const json = toJson(data);
|
||||||
return getJson(json);
|
return getJson(json);
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`Error parsing XML: ${error}`);
|
console.error(`Error parsing XML: ${error}`);
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue