[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:
renalid 2016-09-16 15:49:37 +02:00
parent b6a73938c5
commit b5420c53ed

View File

@ -38,9 +38,10 @@ class FranceInterIE(InfoExtractor):
webpage, 'upload date', fatal=False)
if upload_date_str:
upload_date_list = upload_date_str.split()
upload_date_list.reverse()
upload_date_list[1] = compat_str(month_by_name(upload_date_list[1], lang='fr'))
upload_date = ''.join(upload_date_list)
upload_date = '%s%02d%02d' % (
upload_date_list[2],
int(compat_str(month_by_name(upload_date_list[1], lang='fr'))),
int(upload_date_list[0]))
else:
upload_date = None