From ab3b80d92a4652025f74be01dee8ee189e30996c Mon Sep 17 00:00:00 2001 From: frinkelpi Date: Sat, 17 Dec 2016 14:30:44 +0100 Subject: [PATCH] Remove low importance comments --- youtube_dl/extractor/canalu.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/youtube_dl/extractor/canalu.py b/youtube_dl/extractor/canalu.py index 645f9b5a2..07bf42294 100644 --- a/youtube_dl/extractor/canalu.py +++ b/youtube_dl/extractor/canalu.py @@ -51,12 +51,9 @@ class CanalUIE(InfoExtractor): video['url'] = self._html_search_regex(r'file: "(.*?\.mp4)",', webpage, 'url') video['ext'] = 'mp4' - # Thumbnail video['thumbnail'] = self._og_search_thumbnail(webpage, default=None) - # Description description_regex = r'
.*?

\s*(.*?)\s*

.*?
' video['description'] = self._html_search_regex(description_regex, webpage, 'description', flags=DOTALL, default=None) - # Other fields for field in [ ['duration', 'Durée du programme', '(\d+) min'], ['creator', 'Auteur\(s\)', '(.*?)'], @@ -64,9 +61,7 @@ class CanalUIE(InfoExtractor): ]: regex = r'
{0} : {1}
'.format(field[1], field[2]) video[field[0]] = self._html_search_regex(regex, webpage, field[0], flags=DOTALL, default=None) - # Duration video['duration'] = int_or_none(video['duration'], invscale=60) - # Release date date = video['release_date'].split(' ') video["release_date"] = "{0}{1}{2}".format(date[2], month_by_name(unescapeHTML(date[1]).lower(), 'fr'), date[0])