From a3924d2072b86ba19b8369f7c2bcf94b269814db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 7 Dec 2017 15:45:43 +0100 Subject: [PATCH] [sankaku] fix swf extraction (closes #52) --- gallery_dl/extractor/sankaku.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/gallery_dl/extractor/sankaku.py b/gallery_dl/extractor/sankaku.py index 17f079b2..2215146e 100644 --- a/gallery_dl/extractor/sankaku.py +++ b/gallery_dl/extractor/sankaku.py @@ -88,12 +88,17 @@ class SankakuTagExtractor(Extractor): """Collect metadata for a single image""" url = "https://chan.sankakucomplex.com/post/show/" + image_id page = self.request(url, retries=10).text - image_url, pos = text.extract(page, '
  • Original: ', 'x', pos) - height , pos = text.extract(page, '', ' ', pos) - data = text.nameext_from_url(image_url, { + file_url, pos = text.extract(page, '
  • Original: ', 'x', pos) + height, pos = text.extract(page, '', ' ', pos) + else: + width , pos = text.extract(page, '', pos) + file_url = text.extract(page, '