aboutsummaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2021-02-02 12:59:41 +0100
committerChocobozzz <chocobozzz@cpy.re>2021-02-04 09:04:47 +0100
commit3d4e112d16471703f51a542c0cc6e73a6f5db628 (patch)
treecb4a53a50f9bc14a87b62ccfa9d398feb4bbcbc8 /config
parentf6267b610145033ee26ca8a4a7c2b97eca65072e (diff)
downloadPeerTube-3d4e112d16471703f51a542c0cc6e73a6f5db628.tar.gz
PeerTube-3d4e112d16471703f51a542c0cc6e73a6f5db628.tar.zst
PeerTube-3d4e112d16471703f51a542c0cc6e73a6f5db628.zip
add best trending strategy based on Reddit's best
inspired from https://www.reddit.com/r/changelog/comments/7spgg0/best_is_the_new_hotness/ this implementation only adds freshness, and doesn't personalize based on subscribed communities yet.
Diffstat (limited to 'config')
-rw-r--r--config/default.yaml3
-rw-r--r--config/production.yaml.example3
2 files changed, 4 insertions, 2 deletions
diff --git a/config/default.yaml b/config/default.yaml
index 22488da99..95df2e06c 100644
--- a/config/default.yaml
+++ b/config/default.yaml
@@ -110,7 +110,8 @@ trending:
110 interval_days: 7 # Compute trending videos for the last x days 110 interval_days: 7 # Compute trending videos for the last x days
111 algorithms: 111 algorithms:
112 enabled: 112 enabled:
113 - 'hot' # adaptation of the Reddit 'Hot' algorithm 113 - 'best' # adaptation of Reddit's 'Best' algorithm (Hot minus History)
114 - 'hot' # adaptation of Reddit's 'Hot' algorithm
114 - 'most-viewed' # default, used initially by PeerTube as the trending page 115 - 'most-viewed' # default, used initially by PeerTube as the trending page
115 - 'most-liked' 116 - 'most-liked'
116 default: 'most-viewed' 117 default: 'most-viewed'
diff --git a/config/production.yaml.example b/config/production.yaml.example
index 66c981dd5..13a646918 100644
--- a/config/production.yaml.example
+++ b/config/production.yaml.example
@@ -108,7 +108,8 @@ trending:
108 interval_days: 7 # Compute trending videos for the last x days 108 interval_days: 7 # Compute trending videos for the last x days
109 algorithms: 109 algorithms:
110 enabled: 110 enabled:
111 - 'hot' # adaptation of the Reddit 'Hot' algorithm 111 - 'best' # adaptation of Reddit's 'Best' algorithm (Hot minus History)
112 - 'hot' # adaptation of Reddit's 'Hot' algorithm
112 - 'most-viewed' # default, used initially by PeerTube as the trending page 113 - 'most-viewed' # default, used initially by PeerTube as the trending page
113 - 'most-liked' 114 - 'most-liked'
114 default: 'most-viewed' 115 default: 'most-viewed'