diff --git a/bot.ts b/bot.ts index 6be45d8..1380df5 100644 --- a/bot.ts +++ b/bot.ts @@ -141,7 +141,7 @@ export const bot: ApplicationFunction = (app) => { const targetFilename = playlistIdFromPossibleUrl || - filenameWithoutPath.replace(siQueryStart, ''); + filenameWithoutPath.split(siQueryStart)[0]; return `- From ${filenameWithoutPath} to **${targetFilename}**`; })