mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-22 12:33:10 +00:00
fix for #82
This commit is contained in:
parent
acc7d86561
commit
bc855df6ab
1 changed files with 1 additions and 1 deletions
|
@ -813,7 +813,7 @@ class CollectionBuilder:
|
||||||
dirs = [folder for folder in os.listdir(path) if os.path.isdir(os.path.join(path, folder))]
|
dirs = [folder for folder in os.listdir(path) if os.path.isdir(os.path.join(path, folder))]
|
||||||
if len(dirs) > 0:
|
if len(dirs) > 0:
|
||||||
for item in collection.items():
|
for item in collection.items():
|
||||||
folder = os.path.basename(os.path.dirname(item.locations[0]))
|
folder = os.path.basename(os.path.dirname(item.locations[0]) if self.library.is_movie else item.locations[0])
|
||||||
if folder in dirs:
|
if folder in dirs:
|
||||||
matches = glob.glob(os.path.join(path, folder, "poster.*"))
|
matches = glob.glob(os.path.join(path, folder, "poster.*"))
|
||||||
poster_path = os.path.abspath(matches[0]) if len(matches) > 0 else None
|
poster_path = os.path.abspath(matches[0]) if len(matches) > 0 else None
|
||||||
|
|
Loading…
Reference in a new issue