More Redgifs coverage

This commit is contained in:
Soulsuck24
2023-01-25 04:43:06 -05:00
parent 579c5ab8eb
commit 105ceaf386
2 changed files with 2 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ class Redgifs(BaseDownloader):
try:
if url.endswith("/"):
url = url.removesuffix("/")
redgif_id = re.match(r".*/(.*?)(?:\?.*|\..{0,})?$", url).group(1).lower()
redgif_id = re.match(r".*/(.*?)(?:#.*|\?.*|\..{0,})?$", url).group(1).lower()
if redgif_id.endswith("-mobile"):
redgif_id = redgif_id.removesuffix("-mobile")
except AttributeError: