mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-02 17:22:31 +01:00
[generic] Generalize BBC iPlayer playlist extraction
This commit is contained in:
parent
8399267671
commit
476eae0c2a
@ -908,7 +908,7 @@ def _playlist_from_matches(matches, getter=None, ie=None):
|
||||
# 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])
|
||||
return _playlist_from_matches(matches, ie='BBCCoUk')
|
||||
|
||||
# Look for embedded RUTV player
|
||||
rutv_url = RUTVIE._extract_url(webpage)
|
||||
|
Loading…
Reference in New Issue
Block a user