1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

[8chan] fix image urls

This commit is contained in:
Mike Fährmann 2014-11-26 17:38:50 +01:00
parent 729d2d8b20
commit 1244c933a1

View File

@ -18,4 +18,4 @@ class Extractor(BasicExtractor):
text = self.request(url).text text = self.request(url).text
for match in re.finditer(self.regex, text): for match in re.finditer(self.regex, text):
url, prefix, fullname, name = match.group(1, 2, 4, 5) url, prefix, fullname, name = match.group(1, 2, 4, 5)
yield ("https://www.8chan.co" + url, prefix + "-" + unquote(fullname or name)) yield (url, prefix + "-" + unquote(fullname or name))