add another date option
This commit is contained in:
parent
89acfecb68
commit
dfeed7fa42
@ -188,6 +188,12 @@ class OdnoklassnikiIE(InfoExtractor):
|
|||||||
upload_date_time = upload_date_time.replace(year=datetime.utcnow().year)
|
upload_date_time = upload_date_time.replace(year=datetime.utcnow().year)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
try:
|
||||||
|
upload_date_time = datetime.strptime(upload_date_str, '%d %B')
|
||||||
|
upload_date_time = upload_date_time.replace(year=datetime.utcnow().year)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if upload_date_str.find(':') >=0:
|
if upload_date_str.find(':') >=0:
|
||||||
hour_and_minutes = upload_date_str.split(' ')[-1]
|
hour_and_minutes = upload_date_str.split(' ')[-1]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user