mirror of
https://github.com/p-stream/providers.git
synced 2026-01-11 20:10:33 +00:00
Shut up eslint
This commit is contained in:
parent
cfb8da1366
commit
6544795344
2 changed files with 4 additions and 4 deletions
|
|
@ -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: [],
|
||||
|
|
|
|||
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue