diff --git a/index.js b/index.js index dedfe4b..c3abb58 100644 --- a/index.js +++ b/index.js @@ -39,9 +39,10 @@ async function scrapeLastFMWebsiteForVideo(trackData) { } catch (err) { return null; } if (attr == null) return; - + + let youtubeVideo; try { - const youtubeVideo = await GetVideoDetails(attr); + youtubeVideo = await GetVideoDetails(attr); } catch (err) { return null; } return {