mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-01-07 17:16:08 +00:00
[generic] Allow embedded YoutubePlaylists (Fixes #3821)
This commit is contained in:
parent
cc746841e7
commit
3b2f933b01
|
@ -584,7 +584,9 @@ class GenericIE(InfoExtractor):
|
||||||
|
|
||||||
# Helper method
|
# Helper method
|
||||||
def _playlist_from_matches(matches, getter, ie=None):
|
def _playlist_from_matches(matches, getter, ie=None):
|
||||||
urlrs = orderedSet(self.url_result(getter(m), ie) for m in matches)
|
urlrs = orderedSet(
|
||||||
|
self.url_result(self._proto_relative_url(getter(m)), ie)
|
||||||
|
for m in matches)
|
||||||
return self.playlist_result(
|
return self.playlist_result(
|
||||||
urlrs, playlist_id=video_id, playlist_title=video_title)
|
urlrs, playlist_id=video_id, playlist_title=video_title)
|
||||||
|
|
||||||
|
@ -633,7 +635,7 @@ class GenericIE(InfoExtractor):
|
||||||
\1''', webpage)
|
\1''', webpage)
|
||||||
if matches:
|
if matches:
|
||||||
return _playlist_from_matches(
|
return _playlist_from_matches(
|
||||||
matches, lambda m: unescapeHTML(m[1]), ie='Youtube')
|
matches, lambda m: unescapeHTML(m[1]))
|
||||||
|
|
||||||
# Look for embedded Dailymotion player
|
# Look for embedded Dailymotion player
|
||||||
matches = re.findall(
|
matches = re.findall(
|
||||||
|
|
Loading…
Reference in a new issue