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 + }