Fix for recent datetime refactor

This commit is contained in:
JackDandy 2023-09-19 13:21:29 +01:00
parent 6bda4d7c8f
commit 26e5de33c7

View file

@ -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()})