[seiga] set 'skip_fetish_warning' cookie (#4242)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2016-2022 Mike Fährmann
|
||||
# Copyright 2016-2023 Mike Fährmann
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 2 as
|
||||
@@ -164,6 +164,10 @@ class SeigaImageExtractor(SeigaExtractor):
|
||||
("https://seiga.nicovideo.jp/seiga/im123", {
|
||||
"exception": exception.NotFoundError,
|
||||
}),
|
||||
("https://seiga.nicovideo.jp/seiga/im10877923", {
|
||||
"pattern": r"https://lohas\.nicoseiga\.jp/priv/5936a2a6c860a600e46"
|
||||
r"5e0411c0822e0b510e286/1688757110/10877923",
|
||||
}),
|
||||
("https://seiga.nicovideo.jp/image/source/5977527"),
|
||||
("https://sp.seiga.nicovideo.jp/seiga/#!/im5977527"),
|
||||
("https://lohas.nicoseiga.jp/thumb/5977527i"),
|
||||
@@ -182,6 +186,9 @@ class SeigaImageExtractor(SeigaExtractor):
|
||||
return num
|
||||
|
||||
def get_images(self):
|
||||
self.session.cookies.set(
|
||||
"skip_fetish_warning", "1", domain="seiga.nicovideo.jp")
|
||||
|
||||
url = "{}/seiga/im{}".format(self.root, self.image_id)
|
||||
page = self.request(url, notfound="image").text
|
||||
|
||||
|
||||
Reference in New Issue
Block a user