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

Fix imagefap extrcator

This commit is contained in:
Herp 2024-03-14 23:37:16 -04:00 committed by Mike Fährmann
parent e76d5756a0
commit 99c53f7fa8
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"),