summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/vichan.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/vichan.py')
-rw-r--r--gallery_dl/extractor/vichan.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gallery_dl/extractor/vichan.py b/gallery_dl/extractor/vichan.py
index cbb44ee..86758f3 100644
--- a/gallery_dl/extractor/vichan.py
+++ b/gallery_dl/extractor/vichan.py
@@ -39,7 +39,7 @@ class VichanThreadExtractor(VichanExtractor):
directory_fmt = ("{category}", "{board}", "{thread} {title}")
filename_fmt = "{time}{num:?-//} {filename}.{extension}"
archive_fmt = "{board}_{thread}_{tim}"
- pattern = BASE_PATTERN + r"/([^/?#]+)/res/(\d+)"
+ pattern = rf"{BASE_PATTERN}/([^/?#]+)/res/(\d+)"
example = "https://8kun.top/a/res/12345.html"
def items(self):
@@ -58,7 +58,7 @@ class VichanThreadExtractor(VichanExtractor):
"num" : 0,
}
- yield Message.Directory, data
+ yield Message.Directory, "", data
for post in posts:
if "filename" in post:
yield process(post, data)
@@ -93,7 +93,7 @@ class VichanThreadExtractor(VichanExtractor):
class VichanBoardExtractor(VichanExtractor):
"""Extractor for vichan boards"""
subcategory = "board"
- pattern = BASE_PATTERN + r"/([^/?#]+)(?:/index|/catalog|/\d+|/?$)"
+ pattern = rf"{BASE_PATTERN}/([^/?#]+)(?:/index|/catalog|/\d+|/?$)"
example = "https://8kun.top/a/"
def items(self):