Redo edge case coverage for Redgifs
Cover edge cases that shouldn't ever happen but probably will sometime.
This commit is contained in:
@@ -24,7 +24,7 @@ class Redgifs(BaseDownloader):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def _get_link(url: str) -> set[str]:
|
def _get_link(url: str) -> set[str]:
|
||||||
try:
|
try:
|
||||||
redgif_id = re.match(r'.*/(.*?)(\..{3,})?$', url).group(1)
|
redgif_id = re.match(r'.*/(.*?)(\..{0,})?$', url).group(1)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
raise SiteDownloaderError(f'Could not extract Redgifs ID from {url}')
|
raise SiteDownloaderError(f'Could not extract Redgifs ID from {url}')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user