|
|
@ -1,6 +1,6 @@
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
|
|
|
|
# Copyright 2017-2020 Mike Fährmann
|
|
|
|
# Copyright 2017-2021 Mike Fährmann
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# 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
|
|
|
|
# it under the terms of the GNU General Public License version 2 as
|
|
|
@ -22,8 +22,8 @@ class _2chanThreadExtractor(Extractor):
|
|
|
|
url_fmt = "https://{server}.2chan.net/{board}/src/{filename}"
|
|
|
|
url_fmt = "https://{server}.2chan.net/{board}/src/{filename}"
|
|
|
|
pattern = r"(?:https?://)?([^.]+)\.2chan\.net/([^/]+)/res/(\d+)"
|
|
|
|
pattern = r"(?:https?://)?([^.]+)\.2chan\.net/([^/]+)/res/(\d+)"
|
|
|
|
test = ("http://dec.2chan.net/70/res/4752.htm", {
|
|
|
|
test = ("http://dec.2chan.net/70/res/4752.htm", {
|
|
|
|
"url": "1c2d2ce8aea0fc71d94735cfc30009d628f33548",
|
|
|
|
"url": "20c211ae7c06b18ec345a057fe0b68dde979b051",
|
|
|
|
"keyword": "f508d6841ea2cb19ed799aac9dc580263ca50651",
|
|
|
|
"keyword": "23a529b46313b927fc94b577e5e1fdb3aa164ac1",
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
def __init__(self, match):
|
|
|
|
def __init__(self, match):
|
|
|
|