Ensure substring following si param gets removed

This commit is contained in:
Maciej Pędzich 2023-01-27 16:15:00 +01:00
parent 449f718e6f
commit 90f6b9b617

2
bot.ts
View File

@ -141,7 +141,7 @@ export const bot: ApplicationFunction = (app) => {
const targetFilename =
playlistIdFromPossibleUrl ||
filenameWithoutPath.replace(siQueryStart, '');
filenameWithoutPath.split(siQueryStart)[0];
return `- From ${filenameWithoutPath} to **${targetFilename}**`;
})