mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-11-09 16:00:53 +08:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
e817472ccd
commit
e295bdbf46
1 changed files with 2 additions and 0 deletions
|
|
@ -109,6 +109,7 @@ def init_pool(conf):
|
|||
global _config
|
||||
_config = conf
|
||||
|
||||
|
||||
def get_full_path_of_torrent_files(torrent_files, save_path):
|
||||
fullpath_torrent_files = []
|
||||
for file in torrent_files:
|
||||
|
|
@ -118,6 +119,7 @@ def get_full_path_of_torrent_files(torrent_files, save_path):
|
|||
fullpath_torrent_files.append(fullpath)
|
||||
return fullpath_torrent_files
|
||||
|
||||
|
||||
def move_orphan(file):
|
||||
src = file.replace(_config.root_dir, _config.remote_dir) # Could be optimized to only run when root != remote
|
||||
dest = os.path.join(_config.orphaned_dir, file.replace(_config.root_dir, ""))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue