[Plugin] Don't add torrent name to path

Suggest, post, or discuss plugins for Deluge
mhertz
Compulsive Poster
Compulsive Poster
Posts: 1157
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: [Plugin] Don't add torrent name to path

Post by mhertz »

mombolut
New User
New User
Posts: 2
Joined: Mon Jun 07, 2021 6:53 pm

Re: [Plugin] Don't add torrent name to path

Post by mombolut »

Could someone please update this plugin so it works with Python 2.7 and 3.9? I can't get it to work myself.
The source code is still available at https://github.com/tillkrischer/nofolder
(I'm using Deluge on a Synology NAS (2.0.3 Python 2.7) and Deluge on Windows (2.0.4 Python 3.9) as a Thin-client.)
mhertz
Compulsive Poster
Compulsive Poster
Posts: 1157
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: [Plugin] Don't add torrent name to path

Post by mhertz »

I updated plugin to deluge2, and also added magnet support additionally.

There's an error posted in log very first time enabling plugin, but can be ignored, and was to lazy to spend more time on it today than already did.

When adding magnets, then real metadata handler added, instead of quick time.sleep() hack I used to add in older days, e.g. in this thread previously etc, thanks bdutro for inspiration(from his labelplus fork). There's still an index out of range error shown in log when adding magnet, which also was before I updated it, and again not more time atleast today to try fix that, but works now atleast, so again just cosmetic.

I built it also for python2 as was requested in the post above.

Tested it quickly in python2 and python3, in both options provided and with torrent and magnet.

Rename to match python version if needed.

NoFolder-0.2-py3.9.egg

NoFolder-0.2.py2.7.egg

Edit: Fixed the cosmetic issues of error in log upon enabling/disabling plugin, and made it shut up about index-error/keyerror when using magnets, so no errors shown currently in my quick testings.
mombolut
New User
New User
Posts: 2
Joined: Mon Jun 07, 2021 6:53 pm

Re: [Plugin] Don't add torrent name to path

Post by mombolut »

Wow, I'm really grateful!
A huge thank you!

It works perfectly! Now I can finally use my NAS to seed!
mhertz
Compulsive Poster
Compulsive Poster
Posts: 1157
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: [Plugin] Don't add torrent name to path

Post by mhertz »

You're very welcome, and thanks for your post mate :)
Post Reply