Ensure system playlist link text is formatted correctly

This commit is contained in:
Maciej Pędzich 2024-11-23 20:29:17 +01:00
parent 87b7723e32
commit f2c99ea418
Signed by: maciejpedzich
GPG Key ID: CE4A303D84882F0D

View File

@ -176,7 +176,13 @@ const appFn: ApplicationFunction = (app: Probot, { getRouter }) => {
// .concat(authorName as string); // .concat(authorName as string);
// details = playlistMeta.join(' · '); // details = playlistMeta.join(' · ');
details = title! + '· ' + description; details = (
title +
' · ' +
description!.replace('Playlist · ', '')
)
.replace(/\s+/g, ' ')
.trim();
} }
numProcessedEntries++; numProcessedEntries++;