From 9c8fa7c63c35109cbcd21320f9e515272122cb43 Mon Sep 17 00:00:00 2001 From: renalid Date: Tue, 5 Jul 2016 16:33:57 +0200 Subject: [PATCH] [FranceInter] update after flake8 code review --- youtube_dl/extractor/franceinter.py | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/youtube_dl/extractor/franceinter.py b/youtube_dl/extractor/franceinter.py index 9a4684091..863879bf1 100644 --- a/youtube_dl/extractor/franceinter.py +++ b/youtube_dl/extractor/franceinter.py @@ -3,13 +3,10 @@ from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( - int_or_none, - unified_strdate, unified_timestamp, month_by_french_name, ) -import re class FranceInterIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?franceinter\.fr/emissions/(?P[^?#]+)' @@ -37,16 +34,14 @@ class FranceInterIE(InfoExtractor): title = self._og_search_title(webpage) description = self._og_search_description(webpage) - + extractdate = self._html_search_regex( r'', webpage, 'extractdate', fatal=False) - + extractdate = extractdate.split() - - extractdate = extractdate[3]+","+str(month_by_french_name(extractdate[2]))+","+extractdate[1] - - upload_date = unified_strdate(extractdate) - + + extractdate = extractdate[3] + "," + str(month_by_french_name(extractdate[2])) + "," + extractdate[1] + timestamp = unified_timestamp(extractdate) return { @@ -58,4 +53,4 @@ class FranceInterIE(InfoExtractor): 'url': video_url, 'vcodec': 'none', }], - } \ No newline at end of file + }