From 346654d6024a259c3ea5b057ae7ad1802313b278 Mon Sep 17 00:00:00 2001 From: p0psicles Date: Sat, 12 Jun 2021 17:19:57 +0200 Subject: [PATCH 1/2] Fix provider torrenday. * Needed new cookie cf_clearance. --- medusa/providers/generic_provider.py | 4 ++-- medusa/providers/torrent/json/torrentday.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 From 43583e52cce732f11bf82e2390ac679d0a0bf16a Mon Sep 17 00:00:00 2001 From: p0psicles Date: Sat, 12 Jun 2021 17:23:05 +0200 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) 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)) -----