mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-22 20:43:07 +00:00
[6] remove local provider filtering
This commit is contained in:
parent
3d870805d1
commit
1d91060306
3 changed files with 10 additions and 8 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
1.18.2-develop5
|
1.18.2-develop6
|
||||||
|
|
|
@ -488,7 +488,7 @@ class Operations:
|
||||||
new_poster = tmdb_item.poster_url
|
new_poster = tmdb_item.poster_url
|
||||||
poster_location = "TMDb"
|
poster_location = "TMDb"
|
||||||
if not new_poster:
|
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:
|
if poster:
|
||||||
new_poster = f"{self.library.url}{poster.key}&X-Plex-Token={self.library.token}"
|
new_poster = f"{self.library.url}{poster.key}&X-Plex-Token={self.library.token}"
|
||||||
poster_location = "Plex"
|
poster_location = "Plex"
|
||||||
|
@ -517,7 +517,7 @@ class Operations:
|
||||||
new_background = tmdb_item.backdrop_url
|
new_background = tmdb_item.backdrop_url
|
||||||
background_location = "TMDb"
|
background_location = "TMDb"
|
||||||
if not new_background:
|
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:
|
if background:
|
||||||
new_background = f"{self.library.url}{background.key}&X-Plex-Token={self.library.token}"
|
new_background = f"{self.library.url}{background.key}&X-Plex-Token={self.library.token}"
|
||||||
background_location = "Plex"
|
background_location = "Plex"
|
||||||
|
@ -554,7 +554,7 @@ class Operations:
|
||||||
season_poster = tmdb_seasons[season.seasonNumber].poster_url
|
season_poster = tmdb_seasons[season.seasonNumber].poster_url
|
||||||
poster_location = "TMDb"
|
poster_location = "TMDb"
|
||||||
if not season_poster:
|
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:
|
if poster:
|
||||||
season_poster = f"{self.library.url}{poster.key}&X-Plex-Token={self.library.token}"
|
season_poster = f"{self.library.url}{poster.key}&X-Plex-Token={self.library.token}"
|
||||||
poster_location = "Plex"
|
poster_location = "Plex"
|
||||||
|
@ -578,7 +578,7 @@ class Operations:
|
||||||
background_url = False if season_background else True
|
background_url = False if season_background else True
|
||||||
season_background = season_background.location if season_background else None
|
season_background = season_background.location if season_background else None
|
||||||
if not season_background:
|
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:
|
if background:
|
||||||
season_background = f"{self.library.url}{background.key}&X-Plex-Token={self.library.token}"
|
season_background = f"{self.library.url}{background.key}&X-Plex-Token={self.library.token}"
|
||||||
background_location = "Plex"
|
background_location = "Plex"
|
||||||
|
@ -618,7 +618,7 @@ class Operations:
|
||||||
episode_poster = tmdb_episodes[episode.episodeNumber].still_url
|
episode_poster = tmdb_episodes[episode.episodeNumber].still_url
|
||||||
poster_location = "TMDb"
|
poster_location = "TMDb"
|
||||||
if not episode_poster:
|
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:
|
if poster:
|
||||||
episode_poster = f"{self.library.url}{poster.key}&X-Plex-Token={self.library.token}"
|
episode_poster = f"{self.library.url}{poster.key}&X-Plex-Token={self.library.token}"
|
||||||
poster_location = "Plex"
|
poster_location = "Plex"
|
||||||
|
@ -642,7 +642,7 @@ class Operations:
|
||||||
background_url = False if episode_background else True
|
background_url = False if episode_background else True
|
||||||
episode_background = episode_background.location if episode_background else None
|
episode_background = episode_background.location if episode_background else None
|
||||||
if not episode_background:
|
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:
|
if background:
|
||||||
episode_background = f"{self.library.url}{background.key}&X-Plex-Token={self.library.token}"
|
episode_background = f"{self.library.url}{background.key}&X-Plex-Token={self.library.token}"
|
||||||
background_location = "Plex"
|
background_location = "Plex"
|
||||||
|
|
|
@ -167,14 +167,16 @@ class Overlays:
|
||||||
reset_list = []
|
reset_list = []
|
||||||
for reset in reset_list:
|
for reset in reset_list:
|
||||||
if reset == "plex":
|
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:
|
if temp_poster:
|
||||||
new_backup = f"{self.library.url}{temp_poster.key}&X-Plex-Token={self.library.token}"
|
new_backup = f"{self.library.url}{temp_poster.key}&X-Plex-Token={self.library.token}"
|
||||||
|
break
|
||||||
else:
|
else:
|
||||||
logger.trace("Plex Error: Plex Poster Download Failed")
|
logger.trace("Plex Error: Plex Poster Download Failed")
|
||||||
if reset == "tmdb":
|
if reset == "tmdb":
|
||||||
try:
|
try:
|
||||||
new_backup = self.find_poster_url(item)
|
new_backup = self.find_poster_url(item)
|
||||||
|
break
|
||||||
except Failed as e:
|
except Failed as e:
|
||||||
logger.trace(e)
|
logger.trace(e)
|
||||||
if not new_backup and not self.library.reset_overlays:
|
if not new_backup and not self.library.reset_overlays:
|
||||||
|
|
Loading…
Reference in a new issue