Revert "Edge case coverage"

This reverts commit 2f2b5b749c.
This commit is contained in:
SoulSuck24
2022-09-18 14:30:43 -04:00
parent 2f2b5b749c
commit d4f7deaa68
3 changed files with 8 additions and 7 deletions

View File

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