Browse Source

[culturebox] Improve video id extraction (closes #14947)

master-ytdl-org
Sergey M․ 7 years ago
parent
commit
c38970ca10
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/extractor/francetv.py

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

@ -356,6 +356,7 @@ class CultureboxIE(FranceTVBaseInfoExtractor):
raise ExtractorError('Video %s is not available' % name, expected=True)
video_id, catalogue = self._search_regex(
r'"https?://videos\.francetv\.fr/video/([^@]+@[^"]+)"', webpage, 'video id').split('@')
r'["\'>]https?://videos\.francetv\.fr/video/([^@]+@.+?)["\'<]',
webpage, 'video id').split('@')
return self._extract_video(video_id, catalogue)

Loading…
Cancel
Save