mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 14:57:52 +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}`, {
|
||||
httpHeader: Object.entries(headers).map(([k, v]) => `${k}: ${v}`)
|
||||
});
|
||||
|
||||
const json = toJson(data);
|
||||
return getJson(json);
|
||||
|
||||
} catch (error) {
|
||||
console.error(`Error parsing XML: ${error}`);
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue