Fix relay on get_playlist

This commit is contained in:
Daniel Diment 2023-09-21 23:31:12 +02:00 committed by GitHub
parent 7b600cd4e1
commit bf1123682e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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