Browse Source

[generic] Generalize BBC iPlayer playlist extraction

master
Sergey M․ 10 years ago
parent
commit
476eae0c2a
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/generic.py

2
youtube_dl/extractor/generic.py

@ -908,7 +908,7 @@ class GenericIE(InfoExtractor):
# Look for BBC iPlayer embed # Look for BBC iPlayer embed
matches = re.findall(r'setPlaylist\("(https?://www\.bbc\.co\.uk/iplayer/[^/]+/[\da-z]{8})"\)', webpage) matches = re.findall(r'setPlaylist\("(https?://www\.bbc\.co\.uk/iplayer/[^/]+/[\da-z]{8})"\)', webpage)
if matches: if matches:
return self.playlist_result([self.url_result(video_url, ie='BBCCoUk') for video_url in matches])
return _playlist_from_matches(matches, ie='BBCCoUk')
# Look for embedded RUTV player # Look for embedded RUTV player
rutv_url = RUTVIE._extract_url(webpage) rutv_url = RUTVIE._extract_url(webpage)

Loading…
Cancel
Save