From 26e5de33c760b22791a632a6b0b2efe30dc19a6e Mon Sep 17 00:00:00 2001 From: JackDandy Date: Tue, 19 Sep 2023 13:21:29 +0100 Subject: [PATCH] Fix for recent datetime refactor --- sickgear/webserve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sickgear/webserve.py b/sickgear/webserve.py index 79f10a12..8adb8d97 100644 --- a/sickgear/webserve.py +++ b/sickgear/webserve.py @@ -5033,7 +5033,7 @@ class AddShows(Home): filtered = [] import browser_ua - this_year = datetime.datetime.today().strftime('%Y') + this_year = dt_date.today().strftime('%Y') url = f'https://www.metacritic.com/browse/tv{url_path}' \ f'?releaseYearMin={this_year}&releaseYearMax={this_year}{page}' html = helpers.get_url(url, headers={'User-Agent': browser_ua.get_ua()})