mirror of
https://github.com/iv-org/invidious.git
synced 2024-10-01 01:25:56 -04: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.field "title", playlist.title
|
||||
json.field "id", playlist.id
|
||||
json.field "video_count", playlist.video_count
|
||||
json.field "updated", playlist.updated
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -105,8 +105,7 @@ struct Invidious::User
|
||||
if youtube_playlists = data["youtube_playlists"]?.try &.as_a?
|
||||
playlists.each do |item|
|
||||
begin
|
||||
playlist = get_playlist(item["id"])
|
||||
subscribe_playlist(user, playlist)
|
||||
subscribe_playlist(user, item)
|
||||
rescue ex
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user