Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SickRage-1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
SickRage-1
Commits
9419661b
Commit
9419661b
authored
7 years ago
by
User for SickRage connection
Committed by
miigotu
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix bad YggTorrent credentials handling
parent
0d6cc76f
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sickbeard/providers/yggtorrent.py
+3
-6
3 additions, 6 deletions
sickbeard/providers/yggtorrent.py
with
3 additions
and
6 deletions
sickbeard/providers/yggtorrent.py
+
3
−
6
View file @
9419661b
...
...
@@ -72,10 +72,10 @@ class YggTorrentProvider(TorrentProvider): # pylint: disable=too-many-instance-
response
=
self
.
get_url
(
self
.
urls
[
'
login
'
],
post_data
=
login_params
,
returns
=
'
response
'
)
# The login is now an AJAX call (401 : Bad credentials, 200 : Logged in, other : server failure)
if
response
.
status_code
=
=
401
:
logger
.
log
(
'
Invalid username or password. Check your settings
'
,
logger
.
WARNING
)
if
not
response
or
response
.
status_code
!
=
200
:
logger
.
log
(
'
Unable to connect to provider
'
,
logger
.
WARNING
)
return
False
el
if
response
.
status_code
==
200
:
el
se
:
# It seems we are logged, let's verify that !
response
=
self
.
get_url
(
self
.
url
,
returns
=
'
response
'
)
...
...
@@ -85,9 +85,6 @@ class YggTorrentProvider(TorrentProvider): # pylint: disable=too-many-instance-
if
'
logout
'
not
in
response
.
text
:
logger
.
log
(
'
Invalid username or password. Check your settings
'
,
logger
.
WARNING
)
return
False
else
:
logger
.
log
(
'
Unable to connect to provider
'
,
logger
.
WARNING
)
return
False
return
True
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment