1
0
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:
Mike Fährmann 2024-01-25 20:22:05 +01:00
parent 0502256251
commit beacfa7436
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
4 changed files with 16 additions and 10 deletions

View File

@ -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>

View File

@ -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:

View File

@ -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"

View File

@ -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"),