feat: fixing real debrid download

This commit is contained in:
Chubby Granny Chaser 2024-08-15 20:46:21 +01:00
parent fffea84ef7
commit 68b361e605
No known key found for this signature in database
28 changed files with 241 additions and 185 deletions

View file

@ -53,6 +53,8 @@ export const removeSpecialEditionFromName = (name: string) =>
export const removeDuplicateSpaces = (name: string) =>
name.replace(/\s{2,}/g, " ");
export const replaceDotsWithSpace = (name: string) => name.replace(/\./g, " ");
export const replaceUnderscoreWithSpace = (name: string) =>
name.replace(/_/g, " ");
@ -60,6 +62,7 @@ export const formatName = pipe<string>(
removeReleaseYearFromName,
removeSpecialEditionFromName,
replaceUnderscoreWithSpace,
replaceDotsWithSpace,
(str) => str.replace(/DIRECTOR'S CUT/g, ""),
removeSymbolsFromName,
removeDuplicateSpaces,