diff --git a/modules/core/remove_orphaned.py b/modules/core/remove_orphaned.py index 202bec6..5a80754 100644 --- a/modules/core/remove_orphaned.py +++ b/modules/core/remove_orphaned.py @@ -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, ""))