[pp:ugoira] update (#6056)

- introduce '_ugoira_frame_index' metadata field
- store Ugoira file exts separately
- add 'skip' option
This commit is contained in:
Mike Fährmann
2024-09-05 18:43:06 +02:00
parent 32d2e686c2
commit 07bd967f59
3 changed files with 53 additions and 12 deletions

View File

@@ -119,7 +119,7 @@ class PixivExtractor(Extractor):
for num, frame in enumerate(frames):
url = ("{}{}.{}".format(base, num, ext))
work["num"] = num
work["num"] = work["_ugoira_frame_index"] = num
work["suffix"] = "_p{:02}".format(num)
text.nameext_from_url(url, work)
yield Message.Url, url, work