From 89b6aba98a9adab8887e2e5c1f49b768a290ad6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich?= Date: Sat, 28 Jan 2023 12:55:41 +0100 Subject: [PATCH] Check for entries with matching url and filename --- bot.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.ts b/bot.ts index 6e3d0a1..dc57f86 100644 --- a/bot.ts +++ b/bot.ts @@ -155,8 +155,8 @@ export const bot: ApplicationFunction = (app) => { let urlEntriesToRenameText = ''; const urlFilenameEntries = playlistLookupResults.filter( - ({ found, filename }) => { - found && getPlaylistIdFromUrl(filename); + ({ found, filename, url }) => { + found && filename === url; } );