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 PrivateHD and CinemaZ provider login #7991

Merged
merged 3 commits into from
Apr 20, 2020
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
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
## Unreleased

#### New Features
- Add Keep link as post processing method ([7986](https://github.com/pymedusa/Medusa/pull/7986))
- Add Keep link as post processing method ([#7986](https://github.com/pymedusa/Medusa/pull/7986))

#### Improvements

#### Fixes

- Fixed PrivateHD and CinemaZ provider login ([#7991](https://github.com/pymedusa/Medusa/pull/7991))
-----

## 0.3.15 (2020-04-13)
Expand Down
3 changes: 3 additions & 0 deletions medusa/providers/torrent/html/cinemaz.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ def login(self):
return True

login_html = self.session.get(self.urls['login'])
if not login_html or not login_html.text:
log.warning('Unable to connect to provider')
return False
with BS4Parser(login_html.text, 'html5lib') as html:
token = html.find('input', attrs={'name': '_token'}).get('value')

Expand Down
3 changes: 3 additions & 0 deletions medusa/providers/torrent/html/privatehd.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ def login(self):
return True

login_html = self.session.get(self.urls['login'])
if not login_html or not login_html.text:
log.warning('Unable to connect to provider')
return False
with BS4Parser(login_html.text, 'html5lib') as html:
token = html.find('input', attrs={'name': '_token'}).get('value')

Expand Down