mirror of
https://github.com/p-stream/providers.git
synced 2026-04-20 05:12:05 +00:00
prettier fix
This commit is contained in:
parent
35d48c192c
commit
7a2c255ea8
1 changed files with 5 additions and 7 deletions
|
|
@ -2,15 +2,13 @@ import { CommonMedia } from '@/entrypoint/utils/media';
|
|||
|
||||
export function normalizeTitle(title: string): string {
|
||||
let titleTrimmed = title.trim().toLowerCase();
|
||||
if (((titleTrimmed !== "the movie" && titleTrimmed.endsWith("the movie")))) {
|
||||
titleTrimmed = titleTrimmed.replace("the movie", "");
|
||||
if (titleTrimmed !== 'the movie' && titleTrimmed.endsWith('the movie')) {
|
||||
titleTrimmed = titleTrimmed.replace('the movie', '');
|
||||
}
|
||||
if (((titleTrimmed !== "the series" && titleTrimmed.endsWith("the series")))) {
|
||||
titleTrimmed = titleTrimmed.replace("the series", "");
|
||||
if (titleTrimmed !== 'the series' && titleTrimmed.endsWith('the series')) {
|
||||
titleTrimmed = titleTrimmed.replace('the series', '');
|
||||
}
|
||||
return titleTrimmed
|
||||
.replace(/['":]/g, "")
|
||||
.replace(/[^a-zA-Z0-9]+/g, "_");
|
||||
return titleTrimmed.replace(/['":]/g, '').replace(/[^a-zA-Z0-9]+/g, '_');
|
||||
}
|
||||
|
||||
export function compareTitle(a: string, b: string): boolean {
|
||||
|
|
|
|||
Loading…
Reference in a new issue