[seiga] recognize /thumb/ URLs
https://lohas.nicoseiga.jp/thumb/5977527i
This commit is contained in:
@@ -167,8 +167,8 @@ class SeigaImageExtractor(SeigaExtractor):
|
|||||||
subcategory = "image"
|
subcategory = "image"
|
||||||
filename_fmt = "{category}_{image_id}.{extension}"
|
filename_fmt = "{category}_{image_id}.{extension}"
|
||||||
pattern = (r"(?:https?://)?(?:"
|
pattern = (r"(?:https?://)?(?:"
|
||||||
r"(?:www\.|seiga\.)?nicovideo\.jp/(?:seiga/im|image/source/)"
|
r"(?:seiga\.|www\.)?nicovideo\.jp/(?:seiga/im|image/source/)"
|
||||||
r"|lohas\.nicoseiga\.jp/(?:priv|o)/[^/]+/\d+/)(\d+)")
|
r"|lohas\.nicoseiga\.jp/(?:thumb|(?:priv|o)/[^/]+/\d+)/)(\d+)")
|
||||||
test = (
|
test = (
|
||||||
("http://seiga.nicovideo.jp/seiga/im5977527", {
|
("http://seiga.nicovideo.jp/seiga/im5977527", {
|
||||||
"keyword": "f66ba5de33d4ce2cb57f23bb37e1e847e0771c10",
|
"keyword": "f66ba5de33d4ce2cb57f23bb37e1e847e0771c10",
|
||||||
@@ -177,6 +177,12 @@ class SeigaImageExtractor(SeigaExtractor):
|
|||||||
("http://seiga.nicovideo.jp/seiga/im123", {
|
("http://seiga.nicovideo.jp/seiga/im123", {
|
||||||
"exception": exception.NotFoundError,
|
"exception": exception.NotFoundError,
|
||||||
}),
|
}),
|
||||||
|
("http://seiga.nicovideo.jp/image/source/5977527"),
|
||||||
|
("https://lohas.nicoseiga.jp/thumb/5977527i"),
|
||||||
|
("https://lohas.nicoseiga.jp/priv"
|
||||||
|
"/759a4ef1c639106ba4d665ee6333832e647d0e4e/1549727594/5977527"),
|
||||||
|
("https://lohas.nicoseiga.jp/o"
|
||||||
|
"/759a4ef1c639106ba4d665ee6333832e647d0e4e/1549727594/5977527"),
|
||||||
)
|
)
|
||||||
|
|
||||||
def __init__(self, match):
|
def __init__(self, match):
|
||||||
|
|||||||
Reference in New Issue
Block a user