Skip to content

Commit

Permalink
Use CONFIG.playlist_length_limit when exporting playlists
Browse files Browse the repository at this point in the history
  • Loading branch information
iBicha committed Feb 5, 2023
1 parent 47a5b98 commit c37d8e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/invidious/user/exports.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c37d8e3

Please sign in to comment.