Browse Source

Move deluge lib to libs folder

pull/2063/head
Ruud 12 years ago
parent
commit
48f4b008df
  1. 4
      couchpotato/core/downloaders/deluge/main.py
  2. 4
      libs/synchronousdeluge/__init__.py
  3. 6
      libs/synchronousdeluge/client.py
  4. 0
      libs/synchronousdeluge/exceptions.py
  5. 0
      libs/synchronousdeluge/protocol.py
  6. 0
      libs/synchronousdeluge/rencode.py
  7. 7
      libs/synchronousdeluge/transfer.py

4
couchpotato/core/downloaders/deluge/main.py

@ -5,14 +5,13 @@ from couchpotato.core.helpers.encoding import isInt
from couchpotato.core.logger import CPLog from couchpotato.core.logger import CPLog
from couchpotato.environment import Env from couchpotato.environment import Env
from datetime import timedelta from datetime import timedelta
from synchronousdeluge import DelugeClient from synchronousdeluge import DelugeClient
import os.path import os.path
import traceback import traceback
log = CPLog(__name__) log = CPLog(__name__)
class Deluge(Downloader): class Deluge(Downloader):
protocol = ['torrent', 'torrent_magnet'] protocol = ['torrent', 'torrent_magnet']
@ -238,4 +237,3 @@ class DelugeRPC(object):
def disconnect(self): def disconnect(self):
self.client.disconnect() self.client.disconnect()

4
couchpotato/core/downloaders/deluge/synchronousdeluge/__init__.py → libs/synchronousdeluge/__init__.py

@ -19,6 +19,6 @@ __title__ = "synchronous-deluge"
__version__ = "0.1" __version__ = "0.1"
__author__ = "Christian Dale" __author__ = "Christian Dale"
from .client import DelugeClient from .synchronousdeluge.client import DelugeClient
from .exceptions import DelugeRPCError from .synchronousdeluge.exceptions import DelugeRPCError

6
couchpotato/core/downloaders/deluge/synchronousdeluge/client.py → libs/synchronousdeluge/client.py

@ -3,9 +3,9 @@ import os
from collections import defaultdict from collections import defaultdict
from itertools import imap from itertools import imap
from .exceptions import DelugeRPCError from .synchronousdeluge.exceptions import DelugeRPCError
from .protocol import DelugeRPCRequest, DelugeRPCResponse from .synchronousdeluge.protocol import DelugeRPCRequest, DelugeRPCResponse
from .transfer import DelugeTransfer from .synchronousdeluge.transfer import DelugeTransfer
__all__ = ["DelugeClient"] __all__ = ["DelugeClient"]

0
couchpotato/core/downloaders/deluge/synchronousdeluge/exceptions.py → libs/synchronousdeluge/exceptions.py

0
couchpotato/core/downloaders/deluge/synchronousdeluge/protocol.py → libs/synchronousdeluge/protocol.py

0
couchpotato/core/downloaders/deluge/synchronousdeluge/rencode.py → libs/synchronousdeluge/rencode.py

7
couchpotato/core/downloaders/deluge/synchronousdeluge/transfer.py → libs/synchronousdeluge/transfer.py

@ -1,7 +1,10 @@
import zlib import zlib
import struct import struct
import socket, ssl import socket
from . import rencode import ssl
from synchronousdeluge import rencode
__all__ = ["DelugeTransfer"] __all__ = ["DelugeTransfer"]
Loading…
Cancel
Save