From 3275d01b7476eaacf0f5ab38dd0459dc692ea0b7 Mon Sep 17 00:00:00 2001 From: Parmjit Virk Date: Tue, 17 Apr 2018 17:39:28 -0500 Subject: [PATCH] [KeezMovies] Applied fourth requested fixes for PR #16154 --- youtube_dl/extractor/keezmovies.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/youtube_dl/extractor/keezmovies.py b/youtube_dl/extractor/keezmovies.py index 96275549f..d4e6f7ac1 100644 --- a/youtube_dl/extractor/keezmovies.py +++ b/youtube_dl/extractor/keezmovies.py @@ -107,11 +107,9 @@ class KeezMoviesIE(InfoExtractor): try: self._sort_formats(formats) - except ExtractorError as e: + except ExtractorError: if fatal: - raise ExtractorError(e, expected=True) - else: - self._downloader.report_warning(e) + raise if not title: title = self._html_search_regex( @@ -130,9 +128,7 @@ class KeezMoviesIE(InfoExtractor): def _real_extract(self, url): webpage, info = self._extract_info(url, fatal=False) if not info['formats']: - embed_url = self._search_regex( - r'([\d,.]+) Views?', webpage, 'view count', fatal=False)) return info