This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| worker_processes 4; | |
| pid /app/run/nginx.pid; | |
| error_log /app/log/error.log; | |
| events { | |
| worker_connections 768; | |
| } | |
| http { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from deluge._libtorrent import lt | |
| from deluge.core.torrentmanager import TorrentManagerState | |
| from shutil import copy, _samefile | |
| import cPickle | |
| import os | |
| class Transplant(object): | |
| def __init__(self, config_dir="", torrent_ids=None, torrents=None): | |
| self.state_dir = "" | |
| self.torrents = {} |