mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Fix extracting for mixes provided by YouTube Music
This commit is contained in:
parent
4933cd46d7
commit
f85472c0ce
1 changed files with 4 additions and 2 deletions
|
@ -43,9 +43,11 @@ def fetch_mix(rdid, video_id, cookies = nil, locale = nil)
|
|||
mix_title = playlist["title"].as_s
|
||||
|
||||
contents = playlist["contents"].as_a
|
||||
if contents.map { |video| video["playlistPanelVideoRenderer"]["videoId"] }.includes? video_id
|
||||
until contents[0]["playlistPanelVideoRenderer"]["videoId"].as_s == video_id
|
||||
contents.shift
|
||||
end
|
||||
end
|
||||
|
||||
videos = [] of MixVideo
|
||||
contents.each do |item|
|
||||
|
|
Loading…
Reference in a new issue