From b5420c53ed263a1d77b330983d36e9f4c21e2289 Mon Sep 17 00:00:00 2001 From: renalid Date: Fri, 16 Sep 2016 15:49:37 +0200 Subject: [PATCH] [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. --- youtube_dl/extractor/franceinter.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/franceinter.py b/youtube_dl/extractor/franceinter.py index 0d58f89c5..95f5f1c7d 100644 --- a/youtube_dl/extractor/franceinter.py +++ b/youtube_dl/extractor/franceinter.py @@ -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