From c70639abea210337e82a8e407e7849dd821570ee Mon Sep 17 00:00:00 2001 From: lostb1t Date: Sun, 5 Nov 2023 14:58:26 +0100 Subject: [PATCH] fix: lower android limit a bit to prevent plex rate limit --- src/routes.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/routes.rs b/src/routes.rs index 76f0ed7..5fabf30 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -436,12 +436,12 @@ pub async fn transform_hubs_home( // some androids have trouble loading more for hero style. So load more at once match params.platform { - Platform::Android => count = 50, + Platform::Android => count = 40, _ => (), } // Hack, as the list could be smaller when removing watched items. So we request more. - if !config.include_watched && count < 50 { - count = 50; + if !config.include_watched && count < 40 { + count = 40; } add_query_param_salvo(req, "count".to_string(), count.to_string()); @@ -490,13 +490,13 @@ pub async fn get_hubs_sections( let mut count = params.clone().count.unwrap_or(25); match params.platform { - Platform::Android => count = 50, + Platform::Android => count = 40, _ => (), } // Hack, as the list could be smaller when removing watched items. So we request more. - if !config.include_watched && count < 50 { - count = 50; + if !config.include_watched && count < 40 { + count = 40; } add_query_param_salvo(req, "count".to_string(), count.to_string());