mirror of
https://github.com/karl0ss/GoGoDownloader.git
synced 2025-04-26 19:49:23 +01:00
Update backend.py
added check to see if content downloading is mp4 if not check next link.
This commit is contained in:
parent
bde87f1294
commit
c24be4c4e9
@ -103,6 +103,8 @@ class Download:
|
||||
timeout=3) as workingit:
|
||||
if workingit.status_code != 200:
|
||||
link = None
|
||||
elif workingit.headers['Content-Type'] != 'video/mp4':
|
||||
link = None
|
||||
except Timeout:
|
||||
link = None
|
||||
if link is None:
|
||||
@ -123,6 +125,8 @@ class Download:
|
||||
timeout=3) as workingit:
|
||||
if workingit.status_code != 200:
|
||||
link = None
|
||||
elif workingit.headers['Content-Type'] != 'video/mp4':
|
||||
link = None
|
||||
except Timeout:
|
||||
link = None
|
||||
if link is None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user