Skip to content

Commit 590bfed

Browse files
wise-immersionmikf
authored andcommitted
[fikfap] allow for dash in usernames (#9019)
1 parent fcac444 commit 590bfed

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

gallery_dl/extractor/fikfap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def posts(self):
8686

8787
class FikfapUserExtractor(FikfapExtractor):
8888
subcategory = "user"
89-
pattern = BASE_PATTERN + r"/user/(\w+)"
89+
pattern = BASE_PATTERN + r"/user/([\w-]+)"
9090
example = "https://fikfap.com/user/USER"
9191

9292
def posts(self):

test/results/fikfap.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,10 @@
119119
"linkSidebar" : dict,
120120
},
121121

122+
{
123+
"#url" : "https://fikfap.com/user/Hot-sauce-34",
124+
"#comment" : "'-' in username",
125+
"#class" : fikfap.FikfapUserExtractor,
126+
},
127+
122128
)

0 commit comments

Comments
 (0)