improve handling of text:... URLs

- don't require // after the colon
- open output files in text mode
This commit is contained in:
Mike Fährmann
2017-05-12 14:10:25 +02:00
parent 677c8ced11
commit 107d29ad8a
6 changed files with 12 additions and 13 deletions

View File

@@ -62,7 +62,7 @@ class PixivUserExtractor(Extractor):
work["extension"] = "zip"
yield Message.Url, url, work
work["extension"] = "txt"
yield Message.Url, "text://"+framelist, work
yield Message.Url, "text:"+framelist, work
elif work["page_count"] == 1:
yield Message.Url, work["url"], work