Skip to content

Commit

Permalink
Allow torrent client move when process_method is 'copy' (#8928)
Browse files Browse the repository at this point in the history
* Update process_tv.py

I believe it is desireable to allow torrent move when process_method is 'copy'. See #8927

* Update post_processor.py

also add 'copy' here.
  • Loading branch information
cmunk authored Dec 29, 2020
1 parent d45caa6 commit 81123f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion medusa/post_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, [])
Expand Down
2 changes: 1 addition & 1 deletion medusa/process_tv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 81123f7

Please sign in to comment.