Browse Source

[generic] Add support for BBC iPlayer embeds (Closes #4619)

totalwebcasting
Sergey M․ 10 years ago
parent
commit
db546cf87f
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      youtube_dl/extractor/generic.py

+ 5
- 0
youtube_dl/extractor/generic.py View File

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


Loading…
Cancel
Save