From 37531ee37ec0ed9077b6078766be2c6b818d8f0f Mon Sep 17 00:00:00 2001 From: Ashley Date: Fri, 24 Mar 2023 20:55:42 +0000 Subject: [PATCH] add blank spaces lol --- src/libpoketube/libpoketube-fetcher.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libpoketube/libpoketube-fetcher.js b/src/libpoketube/libpoketube-fetcher.js index 4005a7a0..3bda5a12 100644 --- a/src/libpoketube/libpoketube-fetcher.js +++ b/src/libpoketube/libpoketube-fetcher.js @@ -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;