1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2025-01-10 07:07:55 +01:00

[AnimeLab] Remove useless check of position

This commit is contained in:
Mariusz Skoneczko 2017-07-09 13:18:39 +10:00
parent 6df5193ecd
commit 330768e7b5

View File

@ -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: