mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-18 04:04:31 -05:00
Fix relay on get_playlist
This commit is contained in:
parent
7b600cd4e1
commit
bf1123682e
@ -35,6 +35,8 @@ struct Invidious::User
|
|||||||
json.object do
|
json.object do
|
||||||
json.field "title", playlist.title
|
json.field "title", playlist.title
|
||||||
json.field "id", playlist.id
|
json.field "id", playlist.id
|
||||||
|
json.field "video_count", playlist.video_count
|
||||||
|
json.field "updated", playlist.updated
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -105,8 +105,7 @@ struct Invidious::User
|
|||||||
if youtube_playlists = data["youtube_playlists"]?.try &.as_a?
|
if youtube_playlists = data["youtube_playlists"]?.try &.as_a?
|
||||||
playlists.each do |item|
|
playlists.each do |item|
|
||||||
begin
|
begin
|
||||||
playlist = get_playlist(item["id"])
|
subscribe_playlist(user, item)
|
||||||
subscribe_playlist(user, playlist)
|
|
||||||
rescue ex
|
rescue ex
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user