1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 12:12:34 +01:00

merge #5333: [imagefap] fix folder extractor

This commit is contained in:
Mike Fährmann 2024-03-15 23:46:43 +01:00
commit b8e7be225c
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 11 additions and 1 deletions

View File

@ -194,7 +194,7 @@ class ImagefapFolderExtractor(ImagefapExtractor):
cnt = 0
while True:
gid = extr('<a href="/gallery/', '"')
gid = extr(' id="gid-', '"')
if not gid:
break
yield gid, extr("<b>", "<"), folder_name

View File

@ -120,6 +120,16 @@ __tests__ = (
"#sha1_url": "37822523e6e4a56feb9dea35653760c86b44ff89",
},
{
"#url" : "https://www.imagefap.com/organizer/613950/Grace-Stout",
"#category": ("", "imagefap", "folder"),
"#class" : imagefap.ImagefapFolderExtractor,
"#pattern" : imagefap.ImagefapGalleryExtractor.pattern,
"#count" : 31,
"title": r"re:Grace Stout .+",
},
{
"#url" : "https://www.imagefap.com/usergallery.php?userid=1981976&folderid=409758",
"#category": ("", "imagefap", "folder"),