Skip to content

Commit

Permalink
merge #5333: [imagefap] fix folder extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Mar 15, 2024
2 parents 03a9ce9 + 99c53f7 commit b8e7be2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/extractor/imagefap.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def galleries(self, folder_id):
cnt = 0

while True:
gid = extr('<a href="/gallery/', '"')
gid = extr(' id="gid-', '"')
if not gid:
break
yield gid, extr("<b>", "<"), folder_name
Expand Down
10 changes: 10 additions & 0 deletions test/results/imagefap.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,16 @@
"#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"),
Expand Down

0 comments on commit b8e7be2

Please sign in to comment.