mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-06-27 17:38:25 +00:00
feat: option to increase the number of videos shown on the popular page
This commit is contained in:
parent
4a0e61812e
commit
2d49601066
@ -52,6 +52,7 @@ struct ConfigPreferences
|
||||
property vr_mode : Bool = true
|
||||
property show_nick : Bool = true
|
||||
property save_player_pos : Bool = false
|
||||
property enable_dearrow : Bool = false
|
||||
|
||||
def to_tuple
|
||||
{% begin %}
|
||||
@ -241,6 +242,8 @@ class Config
|
||||
|
||||
property disable_livestreams : Bool = true
|
||||
|
||||
property max_popular_results : Int32 = 40
|
||||
|
||||
{% if flag?(:linux) %}
|
||||
property reload_config_automatically : Bool = true
|
||||
{% end %}
|
||||
|
@ -149,7 +149,7 @@ module Invidious::Database::ChannelVideos
|
||||
SELECT DISTINCT ON (ucid) *
|
||||
FROM channel_videos
|
||||
WHERE ucid IN (SELECT channel FROM (SELECT UNNEST(subscriptions) AS channel FROM users) AS d
|
||||
GROUP BY channel ORDER BY COUNT(channel) DESC LIMIT 40)
|
||||
GROUP BY channel ORDER BY COUNT(channel) DESC LIMIT #{CONFIG.max_popular_results})
|
||||
ORDER BY ucid, published DESC
|
||||
SQL
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user