[5] fix blur

pull/951/head
meisnate12 3 years ago
parent 1fc6c5d5c2
commit 66b3bcfee8

@ -1 +1 @@
1.17.1-develop4 1.17.1-develop5

@ -159,6 +159,7 @@ class Library(ABC):
test = [la.tag for la in self.item_labels(item)] test = [la.tag for la in self.item_labels(item)]
if overlay and "Overlay" in test: if overlay and "Overlay" in test:
item.removeLabel("Overlay") item.removeLabel("Overlay")
if isinstance(item._edits, dict):
item.saveEdits() item.saveEdits()
self._upload_image(item, poster) self._upload_image(item, poster)
poster_uploaded = True poster_uploaded = True

@ -90,13 +90,13 @@ class Overlays:
applied_names = [] applied_names = []
queue_overlays = {} queue_overlays = {}
for over_name in over_names: for over_name in over_names:
if over_name.startswith("blur"): overlay = properties[over_name]
blur_test = int(re.search("\\(([^)]+)\\)", over_name).group(1)) if overlay.name.startswith("blur"):
logger.info(over_name)
blur_test = int(re.search("\\(([^)]+)\\)", overlay.name).group(1))
if blur_test > blur_num: if blur_test > blur_num:
blur_num = blur_test blur_num = blur_test
else: elif overlay.queue:
overlay = properties[over_name]
if overlay.queue:
if overlay.queue not in queue_overlays: if overlay.queue not in queue_overlays:
queue_overlays[overlay.queue] = {} queue_overlays[overlay.queue] = {}
if overlay.weight in queue_overlays[overlay.queue]: if overlay.weight in queue_overlays[overlay.queue]:

Loading…
Cancel
Save