Move deluge lib to libs folder
This commit is contained in:
@@ -5,14 +5,13 @@ from couchpotato.core.helpers.encoding import isInt
|
||||
from couchpotato.core.logger import CPLog
|
||||
from couchpotato.environment import Env
|
||||
from datetime import timedelta
|
||||
|
||||
from synchronousdeluge import DelugeClient
|
||||
|
||||
import os.path
|
||||
import traceback
|
||||
|
||||
log = CPLog(__name__)
|
||||
|
||||
|
||||
class Deluge(Downloader):
|
||||
|
||||
protocol = ['torrent', 'torrent_magnet']
|
||||
@@ -238,4 +237,3 @@ class DelugeRPC(object):
|
||||
|
||||
def disconnect(self):
|
||||
self.client.disconnect()
|
||||
|
||||
|
||||
@@ -19,6 +19,6 @@ __title__ = "synchronous-deluge"
|
||||
__version__ = "0.1"
|
||||
__author__ = "Christian Dale"
|
||||
|
||||
from .client import DelugeClient
|
||||
from .exceptions import DelugeRPCError
|
||||
from .synchronousdeluge.client import DelugeClient
|
||||
from .synchronousdeluge.exceptions import DelugeRPCError
|
||||
|
||||
@@ -3,9 +3,9 @@ import os
|
||||
from collections import defaultdict
|
||||
from itertools import imap
|
||||
|
||||
from .exceptions import DelugeRPCError
|
||||
from .protocol import DelugeRPCRequest, DelugeRPCResponse
|
||||
from .transfer import DelugeTransfer
|
||||
from .synchronousdeluge.exceptions import DelugeRPCError
|
||||
from .synchronousdeluge.protocol import DelugeRPCRequest, DelugeRPCResponse
|
||||
from .synchronousdeluge.transfer import DelugeTransfer
|
||||
|
||||
__all__ = ["DelugeClient"]
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
import zlib
|
||||
import struct
|
||||
import socket, ssl
|
||||
from . import rencode
|
||||
import socket
|
||||
import ssl
|
||||
|
||||
from synchronousdeluge import rencode
|
||||
|
||||
|
||||
__all__ = ["DelugeTransfer"]
|
||||
|
||||
Reference in New Issue
Block a user