[99] has_coordinates fix

pull/877/head
meisnate12 3 years ago
parent b5c31ec2a2
commit d880cc4840

@ -1 +1 @@
1.16.5-develop98
1.16.5-develop99

@ -69,6 +69,9 @@ class Operations:
for k, v in self.library.anidb_map.items():
reverse_anidb[v] = k
if self.library.assets_for_all and not self.library.asset_directory:
logger.error("Asset Error: No Asset Directory for Assets For All")
for i, item in enumerate(items, 1):
try:
item = self.library.reload(item)
@ -78,7 +81,7 @@ class Operations:
logger.ghost(f"Processing: {i}/{len(items)} {item.title}")
current_labels = [la.tag for la in item.labels] if self.library.assets_for_all or self.library.mass_imdb_parental_labels else []
if self.library.assets_for_all and "Overlay" not in current_labels:
if self.library.assets_for_all and self.library.asset_directory and "Overlay" not in current_labels:
try:
poster, background, item_dir, name = self.library.find_item_assets(item)
if poster or background:

@ -1008,7 +1008,7 @@ class Overlay:
return output
def has_coordinates(self):
return self.horizontal_offset is None or self.vertical_offset is None
return self.horizontal_offset is not None and self.vertical_offset is not None
def get_coordinates(self, image_width, image_height, text=None):
if not self.has_coordinates():

Loading…
Cancel
Save