mirror of
https://github.com/SickGear/SickGear.git
synced 2024-11-15 01:15:05 +00:00
Fix for recent datetime refactor
This commit is contained in:
parent
6bda4d7c8f
commit
26e5de33c7
1 changed files with 1 additions and 1 deletions
|
@ -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()})
|
||||
|
|
Loading…
Reference in a new issue