Fix treating .gifv as .jpg
This commit is contained in:
1 parent
1a708bd0fc
commit
50d800baf1
1 file changed
+1
-1
+1
-1
@@ -350,7 +350,7 @@ def extractDirectLink(URL):
|
||||
return URL
|
||||
|
||||
for extension in imageTypes:
|
||||
if extension in URL.split("/")[-1]:
|
||||
if extension in URL.split(".")[-1]:
|
||||
return URL
|
||||
else:
|
||||
return None
|
||||
Reference in new issue
Block a user