mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2025-02-16 13:58:25 +00:00
[79] update location check
This commit is contained in:
parent
3aedbbe76d
commit
06ae1be38c
2 changed files with 6 additions and 4 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.19.0-develop78
|
||||
1.19.0-develop79
|
||||
|
|
|
@ -2857,12 +2857,14 @@ class CollectionBuilder:
|
|||
if self.library.is_movie:
|
||||
path = os.path.dirname(str(item.locations[0]))
|
||||
elif self.library.is_show:
|
||||
str(item.locations[0])
|
||||
if self.library.Radarr and item.ratingKey in self.library.movie_rating_key_map:
|
||||
path = str(item.locations[0])
|
||||
if not path:
|
||||
logger.error(f"Plex Error: No location found for {item.title}: {item.locations}")
|
||||
if path and self.library.Radarr and item.ratingKey in self.library.movie_rating_key_map:
|
||||
path = path.replace(self.library.Radarr.plex_path, self.library.Radarr.radarr_path)
|
||||
path = path[:-1] if path.endswith(('/', '\\')) else path
|
||||
tmdb_paths.append((self.library.movie_rating_key_map[item.ratingKey], path))
|
||||
if self.library.Sonarr and item.ratingKey in self.library.show_rating_key_map:
|
||||
if path and self.library.Sonarr and item.ratingKey in self.library.show_rating_key_map:
|
||||
path = path.replace(self.library.Sonarr.plex_path, self.library.Sonarr.sonarr_path)
|
||||
path = path[:-1] if path.endswith(('/', '\\')) else path
|
||||
tvdb_paths.append((self.library.show_rating_key_map[item.ratingKey], path))
|
||||
|
|
Loading…
Add table
Reference in a new issue