mirror of https://github.com/yt-dlp/yt-dlp.git
YoutubePlaylistIE: don't look into entry['content']['src'], accruing to the docs this can return live stream urls
This commit is contained in:
parent
31eead52e7
commit
953dd93a48
|
@ -1610,11 +1610,6 @@ class YoutubePlaylistIE(InfoExtractor):
|
||||||
index = entry['yt$position']['$t']
|
index = entry['yt$position']['$t']
|
||||||
if 'media$group' in entry and 'media$player' in entry['media$group']:
|
if 'media$group' in entry and 'media$player' in entry['media$group']:
|
||||||
videos.append((index, entry['media$group']['media$player']['url']))
|
videos.append((index, entry['media$group']['media$player']['url']))
|
||||||
# Using this field can cause problems:
|
|
||||||
# https://github.com/rg3/youtube-dl/issues/886
|
|
||||||
elif 'content' in entry:
|
|
||||||
videos.append((index, entry['content']['src']))
|
|
||||||
|
|
||||||
|
|
||||||
if len(response['feed']['entry']) < self._MAX_RESULTS:
|
if len(response['feed']['entry']) < self._MAX_RESULTS:
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue