else if isn't a thing silly

This commit is contained in:
Kade Robertson 2017-07-27 15:58:51 -04:00
parent c558704bd7
commit e53d11b008

View File

@ -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):