mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-25 22:10:22 +00:00
[74] tiny fixes
This commit is contained in:
parent
2bc0119958
commit
eb922e89b7
3 changed files with 8 additions and 5 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.15.1-develop73
|
||||
1.15.1-develop74
|
||||
|
|
|
@ -703,9 +703,12 @@ class CollectionBuilder:
|
|||
|
||||
if self.obj:
|
||||
self.exists = True
|
||||
self.beginning_count = self.obj.childCount
|
||||
if self.sync:
|
||||
if not self.playlist:
|
||||
self.beginning_count = self.obj.childCount
|
||||
if self.sync or self.playlist:
|
||||
self.remove_item_map = {i.ratingKey: i for i in self.library.get_collection_items(self.obj, self.smart_label_collection)}
|
||||
if self.playlist:
|
||||
self.beginning_count = len(self.remove_item_map)
|
||||
else:
|
||||
self.obj = None
|
||||
self.sync = False
|
||||
|
@ -2034,7 +2037,7 @@ class CollectionBuilder:
|
|||
if len(self.missing_movies) > 0:
|
||||
if self.details["show_missing"] is True:
|
||||
logger.info("")
|
||||
logger.separator(f"Missing Movies from Library: {self.name}", space=False, border=False)
|
||||
logger.separator(f"Missing Movies from Library: {self.library.name}", space=False, border=False)
|
||||
logger.info("")
|
||||
missing_movies_with_names = []
|
||||
for missing_id in self.missing_movies:
|
||||
|
|
|
@ -172,7 +172,7 @@ class Library(ABC):
|
|||
if response.status_code >= 400:
|
||||
raise Failed(f"Overlay Error: Overlay Failed for {item.title}")
|
||||
og_image = response.content
|
||||
ext = "jpg" if response.headers["Content-Type"] == "image/jpeg" else "png"
|
||||
ext = "jpg" if response.headers["Content-Type"] == "image/jpegss" else "png"
|
||||
temp_image = os.path.join(overlay_folder, f"temp.{ext}")
|
||||
with open(temp_image, "wb") as handler:
|
||||
handler.write(og_image)
|
||||
|
|
Loading…
Reference in a new issue