[bunkr] change domain to 'app.bunkr.is' (#2634)
This commit is contained in:
@@ -1247,7 +1247,7 @@ Consider all sites to be NSFW unless otherwise known.
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Bunkr</td>
|
<td>Bunkr</td>
|
||||||
<td>https://bunkr.is/</td>
|
<td>https://app.bunkr.is/</td>
|
||||||
<td>Albums</td>
|
<td>Albums</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -20,8 +20,14 @@ class LolisafeExtractor(BaseExtractor):
|
|||||||
|
|
||||||
|
|
||||||
BASE_PATTERN = LolisafeExtractor.update({
|
BASE_PATTERN = LolisafeExtractor.update({
|
||||||
"bunkr": {"root": "https://bunkr.is", "pattern": r"bunkr\.(?:is|to)"},
|
"bunkr": {
|
||||||
"zzzz" : {"root": "https://zz.ht" , "pattern": r"zz\.(?:ht|fo)"},
|
"root": "https://app.bunkr.is",
|
||||||
|
"pattern": r"(?:app\.)?bunkr\.(?:is|to)",
|
||||||
|
},
|
||||||
|
"zzzz" : {
|
||||||
|
"root": "https://zz.ht",
|
||||||
|
"pattern": r"zz\.(?:ht|fo)",
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
@@ -29,7 +35,7 @@ class LolisafeAlbumExtractor(LolisafeExtractor):
|
|||||||
subcategory = "album"
|
subcategory = "album"
|
||||||
pattern = BASE_PATTERN + "/a/([^/?#]+)"
|
pattern = BASE_PATTERN + "/a/([^/?#]+)"
|
||||||
test = (
|
test = (
|
||||||
("https://bunkr.is/a/Lktg9Keq", {
|
("https://app.bunkr.is/a/Lktg9Keq", {
|
||||||
"pattern": r"https://cdn\.bunkr\.is/test-テスト-\"&>-QjgneIQv\.png",
|
"pattern": r"https://cdn\.bunkr\.is/test-テスト-\"&>-QjgneIQv\.png",
|
||||||
"content": "0c8768055e4e20e7c7259608b67799171b691140",
|
"content": "0c8768055e4e20e7c7259608b67799171b691140",
|
||||||
"keyword": {
|
"keyword": {
|
||||||
@@ -65,7 +71,11 @@ class LolisafeAlbumExtractor(LolisafeExtractor):
|
|||||||
|
|
||||||
domain = self.config("domain")
|
domain = self.config("domain")
|
||||||
if domain is None or domain == "auto":
|
if domain is None or domain == "auto":
|
||||||
self.root = text.root_from_url(match.group(0))
|
if self.category == "bunkr":
|
||||||
|
self.root = "https://app.bunkr.is"
|
||||||
|
else:
|
||||||
|
self.root = text.root_from_url(match.group(0))
|
||||||
|
|
||||||
else:
|
else:
|
||||||
self.root = text.ensure_http_scheme(domain)
|
self.root = text.ensure_http_scheme(domain)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user