[6] remove local provider filtering

pull/1256/head
meisnate12 2 years ago
parent 3d870805d1
commit 1d91060306

@ -1 +1 @@
1.18.2-develop5
1.18.2-develop6

@ -488,7 +488,7 @@ class Operations:
new_poster = tmdb_item.poster_url
poster_location = "TMDb"
if not new_poster:
poster = next((p for p in item.posters() if p.provider == "local"), None)
poster = next((p for p in item.posters()), None)
if poster:
new_poster = f"{self.library.url}{poster.key}&X-Plex-Token={self.library.token}"
poster_location = "Plex"
@ -517,7 +517,7 @@ class Operations:
new_background = tmdb_item.backdrop_url
background_location = "TMDb"
if not new_background:
background = next((p for p in item.arts() if p.provider == "local"), None)
background = next((p for p in item.arts()), None)
if background:
new_background = f"{self.library.url}{background.key}&X-Plex-Token={self.library.token}"
background_location = "Plex"
@ -554,7 +554,7 @@ class Operations:
season_poster = tmdb_seasons[season.seasonNumber].poster_url
poster_location = "TMDb"
if not season_poster:
poster = next((p for p in season.posters() if p.provider == "local"), None)
poster = next((p for p in season.posters()), None)
if poster:
season_poster = f"{self.library.url}{poster.key}&X-Plex-Token={self.library.token}"
poster_location = "Plex"
@ -578,7 +578,7 @@ class Operations:
background_url = False if season_background else True
season_background = season_background.location if season_background else None
if not season_background:
background = next((p for p in item.arts() if p.provider == "local"), None)
background = next((p for p in item.arts()), None)
if background:
season_background = f"{self.library.url}{background.key}&X-Plex-Token={self.library.token}"
background_location = "Plex"
@ -618,7 +618,7 @@ class Operations:
episode_poster = tmdb_episodes[episode.episodeNumber].still_url
poster_location = "TMDb"
if not episode_poster:
poster = next((p for p in episode.posters() if p.provider == "local"), None)
poster = next((p for p in episode.posters()), None)
if poster:
episode_poster = f"{self.library.url}{poster.key}&X-Plex-Token={self.library.token}"
poster_location = "Plex"
@ -642,7 +642,7 @@ class Operations:
background_url = False if episode_background else True
episode_background = episode_background.location if episode_background else None
if not episode_background:
background = next((p for p in item.arts() if p.provider == "local"), None)
background = next((p for p in item.arts()), None)
if background:
episode_background = f"{self.library.url}{background.key}&X-Plex-Token={self.library.token}"
background_location = "Plex"

@ -167,14 +167,16 @@ class Overlays:
reset_list = []
for reset in reset_list:
if reset == "plex":
temp_poster = next((p for p in item.posters() if p.provider == "local"), None)
temp_poster = next((p for p in item.posters()), None)
if temp_poster:
new_backup = f"{self.library.url}{temp_poster.key}&X-Plex-Token={self.library.token}"
break
else:
logger.trace("Plex Error: Plex Poster Download Failed")
if reset == "tmdb":
try:
new_backup = self.find_poster_url(item)
break
except Failed as e:
logger.trace(e)
if not new_backup and not self.library.reset_overlays:

Loading…
Cancel
Save