aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/seiga.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/seiga.py')
-rw-r--r--gallery_dl/extractor/seiga.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/gallery_dl/extractor/seiga.py b/gallery_dl/extractor/seiga.py
index 23ba340..ff8c505 100644
--- a/gallery_dl/extractor/seiga.py
+++ b/gallery_dl/extractor/seiga.py
@@ -43,9 +43,7 @@ class SeigaExtractor(Extractor):
def get_image_url(self, image_id):
"""Get url for an image with id 'image_id'"""
url = "{}/image/source/{}".format(self.root, image_id)
- response = self.request(
- url, method="HEAD", allow_redirects=False, notfound="image")
- location = response.headers["location"]
+ location = self.request_location(url, notfound="image")
if "nicovideo.jp/login" in location:
raise exception.StopExtraction(
"HTTP redirect to login page (%s)", location.partition("?")[0])