diff --git a/CHANGELOG.md b/CHANGELOG.md index f1821526ae..8e4ce4a4f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ #### Fixes - Add support for new synology download station api. Credits to Benjv. ([9555](https://github.com/pymedusa/Medusa/pull/9555)) - Fix shows not being removed from UI. ([9563](https://github.com/pymedusa/Medusa/pull/9563)) +- Fix provider torrentday. Needs additional cookie cf_clearance. ([9628](https://github.com/pymedusa/Medusa/pull/9628)) ----- diff --git a/medusa/providers/generic_provider.py b/medusa/providers/generic_provider.py index 69d68a6df8..8880397db6 100644 --- a/medusa/providers/generic_provider.py +++ b/medusa/providers/generic_provider.py @@ -791,8 +791,8 @@ def add_cookies_from_ui(self): return {'result': False, 'message': 'No Cookies added from ui for provider: {0}'.format(self.name)} - cookie_validator = re.compile(r'^([\w%]+=[\w%]+)(;[\w%]+=[\w%]+)*$') - if not cookie_validator.match(self.cookies): + cookie_validator = re.compile(r'([\w%]+=[\w%]+)') + if not cookie_validator.findall(self.cookies): ui.notifications.message( 'Failed to validate cookie for provider {provider}'.format(provider=self.name), 'Cookie is not correctly formatted: {0}'.format(self.cookies)) diff --git a/medusa/providers/torrent/json/torrentday.py b/medusa/providers/torrent/json/torrentday.py index 2ab7caa9a4..9ac863b036 100644 --- a/medusa/providers/torrent/json/torrentday.py +++ b/medusa/providers/torrent/json/torrentday.py @@ -39,7 +39,7 @@ def __init__(self): self.freeleech = False self.enable_cookies = True self.cookies = '' - self.required_cookies = ('uid', 'pass') + self.required_cookies = ('uid', 'pass', 'cf_clearance') # TV/480p - 24 # TV/Bluray - 32