From 81123f7bb9fa3791f01e3ec712470acfc112526a Mon Sep 17 00:00:00 2001 From: Christian Munk Date: Tue, 29 Dec 2020 16:38:00 +0100 Subject: [PATCH] Allow torrent client move when process_method is 'copy' (#8928) * Update process_tv.py I believe it is desireable to allow torrent move when process_method is 'copy'. See https://github.com/pymedusa/Medusa/issues/8927 * Update post_processor.py also add 'copy' here. --- medusa/post_processor.py | 2 +- medusa/process_tv.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/medusa/post_processor.py b/medusa/post_processor.py index f88768c328..65be44e86e 100644 --- a/medusa/post_processor.py +++ b/medusa/post_processor.py @@ -1313,7 +1313,7 @@ def process(self): self._run_extra_scripts(ep_obj) if not self.nzb_name and all([app.USE_TORRENTS, app.TORRENT_SEED_LOCATION, - self.process_method in ('hardlink', 'symlink', 'reflink', 'keeplink')]): + self.process_method in ('hardlink', 'symlink', 'reflink', 'keeplink', 'copy')]): # Store self.info_hash and self.release_name so later we can remove from client if setting is enabled if self.info_hash: existing_release_names = app.RECENTLY_POSTPROCESSED.get(self.info_hash, []) diff --git a/medusa/process_tv.py b/medusa/process_tv.py index a542f3a161..12f7f44b10 100644 --- a/medusa/process_tv.py +++ b/medusa/process_tv.py @@ -213,7 +213,7 @@ def process(self, resource_name=None, force=False, is_priority=None, delete_on=F self.log_and_output('Missed file: {missed_file}', level=logging.WARNING, **{'missed_file': missed_file}) if all([app.USE_TORRENTS, app.TORRENT_SEED_LOCATION, - self.process_method in ('hardlink', 'symlink', 'reflink')]): + self.process_method in ('hardlink', 'symlink', 'reflink', 'copy')]): for info_hash, release_names in list(iteritems(app.RECENTLY_POSTPROCESSED)): if self.move_torrent(info_hash, release_names): app.RECENTLY_POSTPROCESSED.pop(info_hash, None)