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;