mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 10:36:52 -07:00
parent
feb4e36c4c
commit
aeb3e0fd6d
13 changed files with 820 additions and 337 deletions
|
@ -5,7 +5,7 @@ from __future__ import (
|
|||
unicode_literals,
|
||||
)
|
||||
|
||||
from synchronousdeluge.client import DelugeClient
|
||||
from deluge_client.client import DelugeRPCClient
|
||||
|
||||
import core
|
||||
from core import logger
|
||||
|
@ -19,9 +19,9 @@ def configure_client():
|
|||
password = core.DELUGE_PASSWORD
|
||||
|
||||
logger.debug('Connecting to {0}: http://{1}:{2}'.format(agent, host, port))
|
||||
client = DelugeClient()
|
||||
client = DelugeRPCClient(host, port, user, password)
|
||||
try:
|
||||
client.connect(host, port, user, password)
|
||||
client.connect()
|
||||
except Exception:
|
||||
logger.error('Failed to connect to Deluge')
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue