Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix provider torrenday. #9628

Merged
merged 2 commits into from
Jun 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))

-----

Expand Down
4 changes: 2 additions & 2 deletions medusa/providers/generic_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion medusa/providers/torrent/json/torrentday.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down