1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 00:14:39 -05:00

add blank spaces lol

This commit is contained in:
Ashley 2023-03-24 20:55:42 +00:00
parent 624454c134
commit 37531ee37e

View file

@ -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;