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

Update yggtorrent.py #7703

Merged
merged 2 commits into from
Feb 6, 2020
Merged
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 medusa/providers/torrent/html/yggtorrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self):
self.password = None

# URLs
self.url = 'https://www2.yggtorrent.ws'
self.url = 'https://www.yggtorrent.to'
self.urls = {
'auth': urljoin(self.url, 'user/ajax_usermenu'),
'login': urljoin(self.url, 'user/login'),
Expand Down Expand Up @@ -177,7 +177,7 @@ def login(self):
log.warning('Unable to connect to provider')
return False

if not login_resp.ok:
if not login_resp.ok and login_resp.status_code == 401:
log.warning('Invalid username or password. Check your settings')
return False

Expand Down