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