[74] tiny fixes

This commit is contained in:
meisnate12 2022-02-21 15:56:38 -05:00
parent 2bc0119958
commit eb922e89b7
3 changed files with 8 additions and 5 deletions

View file

@ -1 +1 @@
1.15.1-develop73
1.15.1-develop74

View file

@ -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:

View file

@ -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)