Shut up eslint

This commit is contained in:
vlOd 2025-12-10 03:05:34 +02:00
parent cfb8da1366
commit 6544795344
2 changed files with 4 additions and 4 deletions

View file

@ -148,7 +148,7 @@ export async function scrapeUpCloudEmbed(ctx: EmbedScrapeContext): Promise<Embed
},
});
if (!response.body.sources || response.body.sources.length == 0) {
if (!response.body.sources || response.body.sources.length === 0) {
console.warn('Server gave no sources', response.body);
return {
stream: [],

View file

@ -14,7 +14,7 @@ export function throwOnResponse(response: FetcherResponse) {
}
export function getMoviePageURL(name: string, season?: number, episode?: number): string {
name = name
const n = name
.trim()
.normalize('NFD')
.toLowerCase()
@ -23,11 +23,11 @@ export function getMoviePageURL(name: string, season?: number, episode?: number)
.split(' ')
.join('-');
if (season && episode) {
return SHOW_PAGE_URL.replace('{{MOVIE}}', name)
return SHOW_PAGE_URL.replace('{{MOVIE}}', n)
.replace('{{SEASON}}', `${season}`)
.replace('{{EPISODE}}', `${episode}`);
}
return `${MOVIE_PAGE_URL}${name}/`;
return `${MOVIE_PAGE_URL}${n}/`;
}
export async function fetchENTMDBName(tmdbId: number, mediaType: 'movie' | 'show'): Promise<string> {