1
0
Fork 0
mirror of synced 2024-05-17 10:42:39 +12:00

Redo edge case coverage for Redgifs

Cover edge cases that shouldn't ever happen but probably will sometime.
This commit is contained in:
SoulSuck24 2022-09-18 14:32:12 -04:00
parent d4f7deaa68
commit 7bd957aafa

View file

@ -24,7 +24,7 @@ class Redgifs(BaseDownloader):
@staticmethod
def _get_link(url: str) -> set[str]:
try:
redgif_id = re.match(r'.*/(.*?)(\..{3,})?$', url).group(1)
redgif_id = re.match(r'.*/(.*?)(\..{0,})?$', url).group(1)
except AttributeError:
raise SiteDownloaderError(f'Could not extract Redgifs ID from {url}')