Skip to content

Commit

Permalink
Linty
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkf authored Nov 18, 2024
1 parent ff96856 commit 0b817e5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions youtube_dl/extractor/voe.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,14 @@ def _real_extract(self, url):
'https://voe.sx/e/%s' % video_id, video_id)

player_url = self._search_regex(
r'''("|')(?P<url>https://(?!voe\.sx/)[^/]+%s)\1\s*;''' % (path,),
r'''("|')(?P<url>https://(?!voe\.sx/)[^/]+%s)\1\s*;''' % (video_path,),
webpage, 'redirect', group='url', default=None)
if player_url:
webpage = self._download_webpage(
player_url, video_id, note='Redirecting to player page')


sources = self._search_json(
r'\bsources\s*=', webpage, 'sources', video_id, transform_source=js_to_json)
r'\bsources\s*=', webpage, 'sources', video_id, transform_source=js_to_json)

title = self._search_regex(
r'<title>(?:Watch\s+)?(?P<title>.+?)(?:-\s+VOE\s+\|.+)?</title>',
Expand Down

0 comments on commit 0b817e5

Please sign in to comment.