Kabe0 / deluge-windscribe

To provide an isolated VPN layer with Deluge
23 stars 6 forks source link

How to add Plugins manually (egg)? #33

Open Ltek opened 2 years ago

Ltek commented 2 years ago

I have tried installing from https://dev.deluge-torrent.org/wiki/Plugins and also, specifically want to install... ExtractorPlus manually (Preferences -> Plugins -> 'Install')

None of them ever install?

DamsDev1 commented 2 years ago

Same here

Ltek commented 2 years ago

@Kabe0 any ideas how to fix?

Kabe0 commented 2 years ago

There is a file under /config/.config/deluge/core.conf. It contains any of the plugins you may try to install. You can also specify the plugin inside /config/.config/deluge/plugins which is where you can past the raw plugin egg file. This is what I ended up doing to install ItConfig. Once I added it to the plugin folder it was able to be detected by the Deluge container. Make sure to log in and out of Deluge for the plugin to load.

The /config path will be wherever you bound it on your docker run call for the config volume path

The folder permissions can also be an issue. It technically should be the same as the docker deluge user otherwise it won't have access to modify the plugins. I have noticed that Deluge for some reason sometimes does not properly install plugins in general and garbles up the file extension name in the plugin folder so you might find a 0 KB file in the plugin folder that would probably be the plugin you were trying to install.

See if either of those help.

Ltek commented 2 years ago

in core.conf.txt (my complete file attached to this post) I see 'enabled_plugins' section but nothing that lists all the available plugins? There are a list of default plugins in the UI that are not in the core.conf and also not in the folder.

    "enabled_plugins": [
        "AutoAdd",
        "Extractor",
        "Label"

/config is mapped to... /docker/kabe0-deluge so my plugin folder is /docker/kabe0-deluge/.config/deluge/plugins. I copied these to that folder... AutoRemovePlus-0.6.1-py2.7.egg ExtractorPlus-1.6.1-py3.11.egg

I restarted the container (they are still in the folder after restart) but Deluge does not show them in the list of available Plugins in the UI

Capture .

Kabe0 commented 2 years ago

Ah Ok I think I see it. You are running the wrong python version of the .egg file. The docker container runs Python 3.9.2. Please download the 3.9 version of the .egg file, past it inside the plugins folder, and it should work as expected

image

Kabe0 commented 2 years ago

@Ltek Any luck?

Ltek commented 2 years ago

@Kabe0 yes! you guidance helped. There must be a problem pulling the file from the local PC, via the web UI.

When I use the 'Install' button itself, Deluge is pulling the file from my local PC folder, into the Deluge plugins folder, but its not naming it properly. See screesnshot, I just selected the file named LabelPlus-0.3.2.2-py2.7.egg ...note the file name its putting in the UI and in the folder is not correct. I tried the below work around with LabelPlus-0.3.2.2-py2.7.egg and it did not work :(

If I manually copy over the EGG file into the folder before I select the file from the PC diver (during the Install dialog), it works properly!?

Capture2 Capture

Kabe0 commented 2 years ago

Yea I saw that happen too with the Deluge image provided by linuxserver. So I think it might be a deluge bug.

Ltek commented 2 years ago

Yea I saw that happen too with the Deluge image provided by linuxserver. So I think it might be a deluge bug.

Seem odd that they would not fix a huge bug like that -- but is seems that Deluge is pretty much a dead product. Maybe its time to look at switching clients?

Kabe0 commented 2 years ago

Yea that's possible. I have looked at alternatives, though Deluge has one of the cleanest separations from server to client. A lot of the web UI's provided by other torrent clients don't provide all the actions needed to manage it remotely. Maybe things have changed though as it's been quite a few years since I last looked around. Iptables were such a mess about a year ago I had to stop updating the container till the libraries matured.

Kabe0 commented 2 years ago

If you have a torrent client suggestion feel free to let me know and I can check I can check it out as a possibility.

Ltek commented 1 year ago

Yup, thank you for your help! I did figure out using the UI doesn't work properly. I copied over the Egg manually to the folder, then used the UI 'install' button... Then it worked. Not sure why but it's easy and quick so no worries.

On Thu, Jun 16, 2022, 5:57 PM kabe0 @.***> wrote:

@Ltek https://github.com/Ltek Any luck?

— Reply to this email directly, view it on GitHub https://github.com/Kabe0/deluge-windscribe/issues/33#issuecomment-1158294744, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMNFMXFJWTVSAF4KFCM3L3VPO5NBANCNFSM5YVZCAEA . You are receiving this because you were mentioned.Message ID: @.***>