Browse Source

[francetv] Improve video id regex (Closes #8563)

totalwebcasting
Sergey M․ 9 years ago
parent
commit
f3f9cd9234
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/francetv.py

+ 1
- 1
youtube_dl/extractor/francetv.py View File

@ -289,7 +289,7 @@ class FranceTVIE(FranceTVBaseInfoExtractor):
video_id = self._match_id(url)
webpage = self._download_webpage(url, video_id)
video_id, catalogue = self._html_search_regex(
r'href="http://videos?\.francetv\.fr/video/([^@]+@[^"]+)"',
r'(?:href=|player\.setVideo\(\s*)"http://videos?\.francetv\.fr/video/([^@]+@[^"]+)"',
webpage, 'video ID').split('@')
return self._extract_video(video_id, catalogue)


Loading…
Cancel
Save