From 4d06554256954af073e724309ebcf281de64e30e Mon Sep 17 00:00:00 2001 From: wukko Date: Tue, 8 Nov 2022 22:14:10 +0600 Subject: [PATCH] fixed an oopsie --- src/modules/services/youtube.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/services/youtube.js b/src/modules/services/youtube.js index dc2627e9..c0423701 100644 --- a/src/modules/services/youtube.js +++ b/src/modules/services/youtube.js @@ -76,7 +76,7 @@ export default async function(obj) { let descItems = infoInitial.videoDetails.description.split("\n\n") r.fileMetadata.album = descItems[2] r.fileMetadata.copyright = descItems[3] - r.fileMetadata.date = descItems[4].replace("Released on: ", '').trim() + if (descItems[4].startsWith("Released on:")) r.fileMetadata.date = descItems[4].replace("Released on: ", '').trim(); } return r } else {