From 4f5fbbfea9d816a485554709abb62b9ff00937c3 Mon Sep 17 00:00:00 2001 From: JackDandy Date: Sun, 3 Mar 2024 22:52:05 +0000 Subject: [PATCH 1/2] Fix trending url_path for next_episode cards. --- sickgear/webserve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sickgear/webserve.py b/sickgear/webserve.py index bcffd2e3..c7a95064 100644 --- a/sickgear/webserve.py +++ b/sickgear/webserve.py @@ -5187,7 +5187,7 @@ class AddShows(Home): started_past = False params = f'premiering_period={("1", "2")["2" in url_path]}&sort=2' url_path = 'upcoming' - elif 'trending' in url_path: + elif 'trends' in url_path: params = 'trending_within=2' else: params = f'chart_type={("most_popular", "top_rated")["Top" in browse_title]}&premiered_within=2' From 3c639e972a245037b70e7e7a4fdf0e7e969cde67 Mon Sep 17 00:00:00 2001 From: Prinz23 Date: Mon, 4 Mar 2024 00:14:48 +0100 Subject: [PATCH 2/2] Fix unnecessary conversion of datetime object into str and back --- CHANGES.md | 8 +++++++- sickgear/webserve.py | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 3debf425..e1a26a03 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,10 @@ -### 3.30.12 (2024-03-03 22:30:00 UTC) +### 3.30.13 (2024-03-03 23:30:00 UTC) + +* Fix Shows/"Next Episode Cards" change to Trending +* Fix unnecessary conversion of datetime object into str and back + + +### 3.30.12 (2024-03-03 22:30:00 UTC) * Fix menu Shows/"Next Episode Cards" diff --git a/sickgear/webserve.py b/sickgear/webserve.py index c7a95064..1e9ba311 100644 --- a/sickgear/webserve.py +++ b/sickgear/webserve.py @@ -5255,7 +5255,7 @@ class AddShows(Home): age_args['days'] -= 1 dt += relativedelta(day=1) dt += relativedelta(**age_args) - date_info = SGDatetime.sbfdate(dt) + date_info = dt ord_premiered = 0 str_premiered = ''