Skip to content

Commit

Permalink
don't include the last slash in username
Browse files Browse the repository at this point in the history
  • Loading branch information
AbbyAbbyAbbyAbby committed Jun 22, 2022
1 parent cea8745 commit 3844a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydownloader/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def subscription_data_from_url(url: str) -> tuple[str, str]:
return ('rule34', m.group('keywords').lower())
if m := re.match(r"https?://e621\.net/posts\?tags=(?P<keywords>[^&]+)(&.*)?", u):
return ('e621', m.group('keywords').lower())
if m := re.match(r"https?://www\.furaffinity\.net/(user|gallery|scraps|favorites|journal)/(?P<username>[^&]+)(&.*)?/?", u):
if m := re.match(r"https?://www\.furaffinity\.net/(user|gallery|scraps|favorites|journal)/(?P<username>[^&]+)(&.*)?/", u):
return ('furaffinity', m.group('username').lower())
if m := re.match(r"https?://(www\.)instagram\.com/p/(?P<shortcode>[^/]+)/?", u):
return ('instagram', m.group('shortcode'))
Expand Down

0 comments on commit 3844a73

Please sign in to comment.