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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
SickRage-1
Commits
3d312cd3
Commit
3d312cd3
authored
9 years ago
by
Fernando
Browse files
Options
Downloads
Patches
Plain Diff
Change some NZBget ERROR messages to WARNING
parent
31fd7d57
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sickbeard/nzbget.py
+6
-6
6 additions, 6 deletions
sickbeard/nzbget.py
with
6 additions
and
6 deletions
sickbeard/nzbget.py
+
6
−
6
View file @
3d312cd3
...
...
@@ -48,7 +48,7 @@ def sendNZB(nzb, proper=False):
nzbgetXMLrpc
=
"
http://%(username)s:%(password)s@%(host)s/xmlrpc
"
if
sickbeard
.
NZBGET_HOST
is
None
:
logger
.
log
(
u
"
No NZBget host found in configuration. Please configure it.
"
,
logger
.
ERROR
)
logger
.
log
(
u
"
No NZBget host found in configuration. Please configure it.
"
,
logger
.
WARNING
)
return
False
url
=
nzbgetXMLrpc
%
{
"
host
"
:
sickbeard
.
NZBGET_HOST
,
"
username
"
:
sickbeard
.
NZBGET_USERNAME
,
...
...
@@ -59,17 +59,17 @@ def sendNZB(nzb, proper=False):
if
nzbGetRPC
.
writelog
(
"
INFO
"
,
"
SickRage connected to drop of %s any moment now.
"
%
(
nzb
.
name
+
"
.nzb
"
)):
logger
.
log
(
u
"
Successful connected to NZBget
"
,
logger
.
DEBUG
)
else
:
logger
.
log
(
u
"
Successful connected to NZBget, but unable to send a message
"
,
logger
.
ERROR
)
logger
.
log
(
u
"
Successful connected to NZBget, but unable to send a message
"
,
logger
.
WARNING
)
except
httplib
.
socket
.
error
:
logger
.
log
(
u
"
Please check your NZBget host and port (if it is running). NZBget is not responding to this combination
"
,
logger
.
ERROR
)
logger
.
WARNING
)
return
False
except
xmlrpclib
.
ProtocolError
,
e
:
if
e
.
errmsg
==
"
Unauthorized
"
:
logger
.
log
(
u
"
NZBget username or password is incorrect.
"
,
logger
.
ERROR
)
logger
.
log
(
u
"
NZBget username or password is incorrect.
"
,
logger
.
WARNING
)
else
:
logger
.
log
(
u
"
Protocol Error:
"
+
e
.
errmsg
,
logger
.
ERROR
)
return
False
...
...
@@ -146,8 +146,8 @@ def sendNZB(nzb, proper=False):
logger
.
log
(
u
"
NZB sent to NZBget successfully
"
,
logger
.
DEBUG
)
return
True
else
:
logger
.
log
(
u
"
NZBget could not add %s to the queue
"
%
(
nzb
.
name
+
"
.nzb
"
),
logger
.
ERROR
)
logger
.
log
(
u
"
NZBget could not add %s to the queue
"
%
(
nzb
.
name
+
"
.nzb
"
),
logger
.
WARNING
)
return
False
except
Exception
:
logger
.
log
(
u
"
Connect Error to NZBget: could not add %s to the queue
"
%
(
nzb
.
name
+
"
.nzb
"
),
logger
.
ERROR
)
logger
.
log
(
u
"
Connect Error to NZBget: could not add %s to the queue
"
%
(
nzb
.
name
+
"
.nzb
"
),
logger
.
WARNING
)
return
False
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