mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-07 12:19:29 +01:00
nzbget - log as info instead of error
This commit is contained in:
@@ -46,9 +46,9 @@ def sendNZB(nzb):
|
||||
nzbGetRPC = xmlrpclib.ServerProxy(url)
|
||||
try:
|
||||
if nzbGetRPC.writelog("INFO", "headphones connected to drop of %s any moment now." % (nzb.name + ".nzb")):
|
||||
logger.debug(u"Successful connected to NZBget")
|
||||
logger.debug(u"Successfully connected to NZBget")
|
||||
else:
|
||||
logger.error(u"Successful connected to NZBget, but unable to send a message" % (nzb.name + ".nzb"))
|
||||
logger.info(u"Successfully connected to NZBget, but unable to send a message" % (nzb.name + ".nzb"))
|
||||
|
||||
except httplib.socket.error:
|
||||
logger.error(u"Please check your NZBget host and port (if it is running). NZBget is not responding to this combination")
|
||||
@@ -74,7 +74,7 @@ def sendNZB(nzb):
|
||||
|
||||
nzbcontent64 = standard_b64encode(data)
|
||||
|
||||
logger.error(u"Sending NZB to NZBget")
|
||||
logger.info(u"Sending NZB to NZBget")
|
||||
logger.debug(u"URL: " + url)
|
||||
|
||||
if nzbGetRPC.append(nzb.name + ".nzb", headphones.NZBGET_CATEGORY, addToTop, nzbcontent64):
|
||||
|
||||
Reference in New Issue
Block a user