else if isn't a thing silly
This commit is contained in:
parent
c558704bd7
commit
e53d11b008
@ -1454,7 +1454,7 @@ class YoutubeDL(object):
|
||||
upload_date = datetime.datetime.utcfromtimestamp(info_dict['timestamp'])
|
||||
except (ValueError, OverflowError, OSError):
|
||||
pass
|
||||
else if info_dict.get('upload_date') is not None:
|
||||
elif info_dict.get('upload_date') is not None:
|
||||
try:
|
||||
upload_date = datetime.datetime.strptime(info_dict['upload_date'], '%Y%m%d')
|
||||
except (ValueError, OverflowError, OSError):
|
||||
|
Loading…
x
Reference in New Issue
Block a user