Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/overseerr/commit/03cecb33559e27199c5a174fc86de0c4550fe666
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
23 additions and
4 deletions
@ -353,6 +353,25 @@ class JobPlexSync {
}
}
// movies with hama agent actually are tv shows with at least one episode in it
// try to get first episode of any season - cannot hardcode season or episode number
// because sometimes user can have it in other season/ep than s01e01
private async processHamaMovie (
metadata : PlexMetadata ,
tmdbMovie : TmdbMovieDetails | undefined ,
tmdbMovieId : number
) {
const season = metadata . Children ? . Metadata [ 0 ] ;
if ( season ) {
const episodes = await this . plexClient . getChildrenMetadata (
season . ratingKey
) ;
if ( episodes ) {
await this . processMovieWithId ( episodes [ 0 ] , tmdbMovie , tmdbMovieId ) ;
}
}
}
private async processShow ( plexitem : PlexLibraryItem ) {
const mediaRepository = getRepository ( Media ) ;
@ -431,8 +450,8 @@ class JobPlexSync {
// if lookup of tvshow above failed, then try movie with tmdbid/imdbid
// note - some tv shows have imdbid set too, that's why this need to go second
if ( result ? . tmdbId ) {
return await this . process MovieWithId (
plexitem ,
return await this . process Hama Movie(
metadata ,
undefined ,
result . tmdbId
) ;
@ -440,8 +459,8 @@ class JobPlexSync {
const tmdbMovie = await this . tmdb . getMovieByImdbId ( {
imdbId : result.imdbId ,
} ) ;
return await this . process MovieWithId (
plexitem ,
return await this . process Hama Movie(
metadata ,
tmdbMovie ,
tmdbMovie . id
) ;