[France Inter] Bug fix on upload date
There is an issue on the upload date. The format is wrong when the month is between January (1) to September (9). The 0 is missing.
This commit is contained in:
parent
b6a73938c5
commit
b5420c53ed
@ -38,9 +38,10 @@ class FranceInterIE(InfoExtractor):
|
|||||||
webpage, 'upload date', fatal=False)
|
webpage, 'upload date', fatal=False)
|
||||||
if upload_date_str:
|
if upload_date_str:
|
||||||
upload_date_list = upload_date_str.split()
|
upload_date_list = upload_date_str.split()
|
||||||
upload_date_list.reverse()
|
upload_date = '%s%02d%02d' % (
|
||||||
upload_date_list[1] = compat_str(month_by_name(upload_date_list[1], lang='fr'))
|
upload_date_list[2],
|
||||||
upload_date = ''.join(upload_date_list)
|
int(compat_str(month_by_name(upload_date_list[1], lang='fr'))),
|
||||||
|
int(upload_date_list[0]))
|
||||||
else:
|
else:
|
||||||
upload_date = None
|
upload_date = None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user