From 330768e7b5490ff4c871fcf73b77577fc73c8758 Mon Sep 17 00:00:00 2001 From: Mariusz Skoneczko Date: Sun, 9 Jul 2017 13:18:39 +1000 Subject: [PATCH] [AnimeLab] Remove useless check of position --- youtube_dl/extractor/animelab.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/youtube_dl/extractor/animelab.py b/youtube_dl/extractor/animelab.py index 7fa7c6a2b..1ddb46e8b 100644 --- a/youtube_dl/extractor/animelab.py +++ b/youtube_dl/extractor/animelab.py @@ -71,11 +71,7 @@ class AnimeLabBaseIE(InfoExtractor): def _extract_position_from_player(self, webpage): position_str = self._search_regex(r'playlistPosition *?= *?(\d+)', webpage, 'Playlist Position') - position = int_or_none(position_str) - if position is None: - raise ExtractorError('Could not get playlist position as integer. Extracted string was %s' % position_str) - - return position + return int_or_none(position_str) def _create_title(self, webpage, title_parts): if None not in title_parts: