-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[yandere] "KeyError - '_ugoira_frame_index'" ig ugoira postprocessor exists #6154
Labels
Comments
diff --git a/gallery_dl/postprocessor/ugoira.py b/gallery_dl/postprocessor/ugoira.py
index f053afa0..defde012 100644
--- a/gallery_dl/postprocessor/ugoira.py
+++ b/gallery_dl/postprocessor/ugoira.py
@@ -109,8 +109,11 @@ class UgoiraPP(PostProcessor):
pathfmt.set_extension(self.extension)
pathfmt.build_path()
else:
+ index = pathfmt.kwdict.get("_ugoira_frame_index")
+ if index is None:
+ return
+
pathfmt.build_path()
- index = pathfmt.kwdict["_ugoira_frame_index"]
frame = self._frames[index].copy()
frame["index"] = index
frame["path"] = pathfmt.realpath |
That does work!
|
mikf
added a commit
that referenced
this issue
Sep 9, 2024
fixes regression introduced in 07bd967 Files with a non-ugoira related 'frames' metadata field would cause an exception when an ugoira post processor was active.
mikf
added a commit
that referenced
this issue
Oct 9, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When trying to download any image from yande.re I'm getting
KeyError - '_ugoira_frame_index'
, even though it shouldn't run anything with ugoira at all.Minimal config to trigger this:
This hasn't caused any issue in older versions, but do I have to set a whitelist for the extractor now?
The text was updated successfully, but these errors were encountered: