[bunkr] update default archive ID format (#6935)
use 'name' when there is no proper 'id' value available.
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user