Fix error with old gfycat/redgifs urls

This commit is contained in:
alpbetgam
2021-05-16 14:16:47 +12:00
committed by Serene
parent 17226a4f0b
commit ef37712115
2 changed files with 2 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ from bdfr.site_downloaders.gfycat import Gfycat
('https://gfycat.com/definitivecaninecrayfish', 'https://giant.gfycat.com/DefinitiveCanineCrayfish.mp4'),
('https://gfycat.com/dazzlingsilkyiguana', 'https://giant.gfycat.com/DazzlingSilkyIguana.mp4'),
('https://gfycat.com/webbedimpurebutterfly', 'https://thumbs2.redgifs.com/WebbedImpureButterfly.mp4'),
('https://gfycat.com/CornyLoathsomeHarrierhawk', 'https://thumbs2.redgifs.com/CornyLoathsomeHarrierhawk.mp4')
))
def test_get_link(test_url: str, expected_url: str):
result = Gfycat._get_link(test_url)