[bunkr] update default archive ID format (#6935)

use 'name' when there is no proper 'id' value available.
This commit is contained in:
Mike Fährmann
2025-02-05 21:36:52 +01:00
parent 873cbf6b36
commit b9675ea764
2 changed files with 11 additions and 0 deletions

View File

@@ -60,6 +60,7 @@ class BunkrAlbumExtractor(LolisafeAlbumExtractor):
"""Extractor for bunkr.si albums"""
category = "bunkr"
root = "https://bunkr.si"
archive_fmt = "{album_id}_{id|name}"
pattern = BASE_PATTERN + r"/a/([^/?#]+)"
example = "https://bunkr.si/a/ID"

View File

@@ -55,6 +55,16 @@ __tests__ = (
"#count" : 7,
},
{
"#url" : "https://bunkr.cr/a/Gm931jJz",
"#comment" : "empty 'id', duplicate archive IDs (#6935)",
"#category": ("lolisafe", "bunkr", "album"),
"#class" : bunkr.BunkrAlbumExtractor,
"#count" : 2,
"id": "",
},
{
"#url" : "https://bunkr.ph/a/Lktg9Keq",
"#class" : bunkr.BunkrAlbumExtractor,