[Plugin] LabelPlus v0.3.2.2

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

Re: [Plugin] LabelPlus v0.3.2.2

Post by mhertz »

I reuploaded bdutro's latest fork with the two pending PRs applied, because found it showed a few errors in log/terminal, though not important and just little annoying but still - one was from bdutro's fork itself, another from sammys PR and last from deluge itself when first time enabling plugin(when plugin build with latest python-setuptools), which I made all shut up now, and no other changes.

LabelPlus-0.3.2.4.egg

Last, I didn't bother add UI support, so you need script it yourself, but as requested here's latest Execute plugin from develop branch(works on deluge 2.0.3 and up), extended to output an additional fourth parameter of labelplus label, so you need in your execute script make checks for label e.g. in sh syntax '[ $4 == foo ] && bar', or 'if/else' clause, 'case' statement etc. Drop it into plugins dir of deluge profile, restart, and it will take precedense over default, as I upped version(and changed entry_points specifically needed for dockers).

Execute-1.4.egg
mhertz
Moderator
Moderator
Posts: 1269
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: [Plugin] LabelPlus v0.3.2.2

Post by mhertz »

During testing previously, I found an issue with bdutro's labelplus fork, in certain specific scenario, failing to apply autolabel when following 3 criterias is true:
  • Using GTKUI in standalone mode(non-thinclient).
  • Disabled 'interactive_add', called 'Always show' in GTKUI 'Downloads' preferences pane.
  • Deluge freshly started with magnet URI appended e.g. from selecting a magnet link in browser when having magnet file-assoc's defined, or just manually from terminal(and deluge not running precedingly).

I'm currently seeing if can fix/workaround this in the plugin directly, and will post build if succeding, but meanwhile I workarounded it in deluge itself, so if being hit by this issue, then here's a command-line to copy/paste into a terminal, sorry windows users, haven't adapted to cmd format, but you can download the patch(url in command-line) and apply yourself, which linux users of-course also can if preferred instead.

My changes adds a check for above circumstances whenever a magnet URI added as appended argument and deluge not running precedingly - if testing return true then adds the magnet with a 1 sec async/non-blocking delay, so not using 'time.sleep()', but a 'twisted.reactor.callLater' wrapped function-call, and only in the case of these three criterias fullfilled, to not be too ineffecient at other times than this.

Works on deluge 2.0.3 and up to current develop branch.

Run a second time if wanting to revert back to default(displays "patch being reversed").

Needs 'sudo', 'patch' and 'wget' - if having 'curl' instead of 'wget', then exchange 'wget -O-' with 'curl'.

Code: Select all

sudo find / -path */python*/*/deluge/ui/gtk3 -exec sh -c 'wget -O- https://paste.c-net.org/ElliotRealise | patch -t -d {}' \;
neo
Member
Member
Posts: 12
Joined: Tue Sep 29, 2020 9:39 am

Re: [Plugin] LabelPlus v0.3.2.2

Post by neo »

Thanks once again for your continued maintenance of this (and other!) plugins!
mhertz
Moderator
Moderator
Posts: 1269
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: [Plugin] LabelPlus v0.3.2.2

Post by mhertz »

Thanks for the kind words mate, appreciate your posting :)
Post Reply