Ticket #3035: fix.diff

File fix.diff, 645 bytes (added by Yumiko, 7 years ago)

Patch (git diff)

  • deluge/plugins/Extractor/deluge/plugins/extractor/core.py

    diff --git a/deluge/plugins/Extractor/deluge/plugins/extractor/core.py b/deluge/plugins/Extractor/deluge/plugins/extractor/core.py
    index 649e91334..0e2f1770a 100644
    a b def _on_torrent_finished(self, torrent_id):  
    141141            if self.config['use_name_folder']:
    142142                dest = os.path.join(dest, tid_status['name'])
    143143
     144            dest = os.path.join(dest, os.path.dirname(os.path.normpath(f['path'])))
     145
    144146            try:
    145147                os.makedirs(dest)
    146148            except OSError as ex: