mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-23 01:08:10 +00:00
Merge pull request #888 from rg3/youtube_playlists_fix_886
YoutubePlaylistIE: try to extract the url of the entries from the media$group dictionary (closes #886)
This commit is contained in:
commit
e296100005
1 changed files with 4 additions and 3 deletions
|
@ -1609,9 +1609,10 @@ class YoutubePlaylistIE(InfoExtractor):
|
||||||
# Number of videos is a multiple of self._MAX_RESULTS
|
# Number of videos is a multiple of self._MAX_RESULTS
|
||||||
break
|
break
|
||||||
|
|
||||||
videos += [ (entry['yt$position']['$t'], entry['content']['src'])
|
for entry in response['feed']['entry']:
|
||||||
for entry in response['feed']['entry']
|
index = entry['yt$position']['$t']
|
||||||
if 'content' in entry ]
|
if 'media$group' in entry and 'media$player' in entry['media$group']:
|
||||||
|
videos.append((index, entry['media$group']['media$player']['url']))
|
||||||
|
|
||||||
if len(response['feed']['entry']) < self._MAX_RESULTS:
|
if len(response['feed']['entry']) < self._MAX_RESULTS:
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue