mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 02:32:33 +01:00
[bunkr] update domain to 'bunkr.sk' (#5114)
This commit is contained in:
parent
0502256251
commit
beacfa7436
@ -123,7 +123,7 @@ Consider all listed sites to potentially be NSFW.
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Bunkr</td>
|
||||
<td>https://bunkrr.ru/</td>
|
||||
<td>https://bunkr.sk/</td>
|
||||
<td>Albums, Media Files</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
@ -6,13 +6,13 @@
|
||||
# it under the terms of the GNU General Public License version 2 as
|
||||
# published by the Free Software Foundation.
|
||||
|
||||
"""Extractors for https://bunkrr.ru/"""
|
||||
"""Extractors for https://bunkr.sk/"""
|
||||
|
||||
from .lolisafe import LolisafeAlbumExtractor
|
||||
from .. import text
|
||||
from urllib.parse import urlsplit, urlunsplit
|
||||
|
||||
BASE_PATTERN = r"(?:https?://)?(?:app\.)?bunkr+\.(?:[rs]u|la|is|to)"
|
||||
BASE_PATTERN = r"(?:https?://)?(?:app\.)?bunkr+\.(?:sk|[rs]u|la|is|to)"
|
||||
|
||||
MEDIA_DOMAIN_OVERRIDES = {
|
||||
"cdn9.bunkr.ru" : "c9.bunkr.ru",
|
||||
@ -27,11 +27,11 @@ CDN_HOSTED_EXTENSIONS = (
|
||||
|
||||
|
||||
class BunkrAlbumExtractor(LolisafeAlbumExtractor):
|
||||
"""Extractor for bunkrr.ru albums"""
|
||||
"""Extractor for bunkr.sk albums"""
|
||||
category = "bunkr"
|
||||
root = "https://bunkrr.ru"
|
||||
root = "https://bunkr.sk"
|
||||
pattern = BASE_PATTERN + r"/a/([^/?#]+)"
|
||||
example = "https://bunkrr.ru/a/ID"
|
||||
example = "https://bunkr.sk/a/ID"
|
||||
|
||||
def fetch_album(self, album_id):
|
||||
# album metadata
|
||||
@ -84,11 +84,11 @@ class BunkrAlbumExtractor(LolisafeAlbumExtractor):
|
||||
|
||||
|
||||
class BunkrMediaExtractor(BunkrAlbumExtractor):
|
||||
"""Extractor for bunkrr.ru media links"""
|
||||
"""Extractor for bunkr.sk media links"""
|
||||
subcategory = "media"
|
||||
directory_fmt = ("{category}",)
|
||||
pattern = BASE_PATTERN + r"/[vid]/([^/?#]+)"
|
||||
example = "https://bunkrr.ru/v/FILENAME"
|
||||
example = "https://bunkr.sk/v/FILENAME"
|
||||
|
||||
def fetch_album(self, album_id):
|
||||
try:
|
||||
|
@ -6,4 +6,4 @@
|
||||
# it under the terms of the GNU General Public License version 2 as
|
||||
# published by the Free Software Foundation.
|
||||
|
||||
__version__ = "1.26.7"
|
||||
__version__ = "1.26.8-dev"
|
||||
|
@ -9,7 +9,7 @@ from gallery_dl.extractor import bunkr
|
||||
|
||||
__tests__ = (
|
||||
{
|
||||
"#url" : "https://bunkrr.ru/a/Lktg9Keq",
|
||||
"#url" : "https://bunkr.sk/a/Lktg9Keq",
|
||||
"#category": ("lolisafe", "bunkr", "album"),
|
||||
"#class" : bunkr.BunkrAlbumExtractor,
|
||||
"#urls" : "https://i-burger.bunkr.ru/test-テスト-\"&>-QjgneIQv.png",
|
||||
@ -64,6 +64,12 @@ __tests__ = (
|
||||
"#count" : 9,
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://bunkrr.ru/a/Lktg9Keq",
|
||||
"#category": ("lolisafe", "bunkr", "album"),
|
||||
"#class" : bunkr.BunkrAlbumExtractor,
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://bunkrr.su/a/Lktg9Keq",
|
||||
"#category": ("lolisafe", "bunkr", "album"),
|
||||
|
Loading…
Reference in New Issue
Block a user