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:
parent
6df5193ecd
commit
330768e7b5
@ -71,11 +71,7 @@ class AnimeLabBaseIE(InfoExtractor):
|
|||||||
|
|
||||||
def _extract_position_from_player(self, webpage):
|
def _extract_position_from_player(self, webpage):
|
||||||
position_str = self._search_regex(r'playlistPosition *?= *?(\d+)', webpage, 'Playlist Position')
|
position_str = self._search_regex(r'playlistPosition *?= *?(\d+)', webpage, 'Playlist Position')
|
||||||
position = int_or_none(position_str)
|
return 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
|
|
||||||
|
|
||||||
def _create_title(self, webpage, title_parts):
|
def _create_title(self, webpage, title_parts):
|
||||||
if None not in title_parts:
|
if None not in title_parts:
|
||||||
|
Loading…
Reference in New Issue
Block a user