findPlexItemByTitleAndYear returns a promise so we await its response.
This commit is contained in:
@@ -93,8 +93,8 @@ class Plex {
|
|||||||
return match
|
return match
|
||||||
}
|
}
|
||||||
|
|
||||||
existsInPlex(tmdb) {
|
async existsInPlex(tmdb) {
|
||||||
const plexMatch = this.findPlexItemByTitleAndYear(tmdb.title, tmdb.year)
|
const plexMatch = await this.findPlexItemByTitleAndYear(tmdb.title, tmdb.year)
|
||||||
return plexMatch ? true : false
|
return plexMatch ? true : false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user