Use CONFIG.playlist_length_limit when exporting playlists

pull/3617/head
Brahim Hadriche 2 years ago
parent 47a5b98e25
commit c37d8e3664

@ -19,7 +19,7 @@ struct Invidious::User
json.field "privacy", playlist.privacy.to_s
json.field "videos" do
json.array do
Invidious::Database::PlaylistVideos.select_ids(playlist.id, playlist.index, limit: 500).each do |video_id|
Invidious::Database::PlaylistVideos.select_ids(playlist.id, playlist.index, limit: CONFIG.playlist_length_limit).each do |video_id|
json.string video_id
end
end

Loading…
Cancel
Save