Mik1ll / LuaRenamer

Lua file renaming and moving plugin for Shoko. Uses Lua 5.4.
GNU Lesser General Public License v3.0
12 stars 5 forks source link

install on Docker #15

Closed papaj-na-wrotkach closed 1 year ago

papaj-na-wrotkach commented 1 year ago

I have my ShokoServer on Docker (Manjaro Linux) and I use the Shoko Desktop app via Wine. I extracted the archive (linux version) to ~/.shoko/Shoko.CLI/plugin (inside ~/.shoko/Shoko.CLI/plugin/LuaRenamer is only lua subdirectory and files - no nested LuaRenamer directory). After restarting the server I opened Shoko Desktop, went to Utilities > File Renaming tab but there is no new renamer: image

Mik1ll commented 1 year ago

The plugin folder should be named "plugins" (plural). Note that the latest version compatible with Shoko stable (4.1.2) is v0.3.0.

papaj-na-wrotkach commented 1 year ago

The folder is actually named plugins. I made a mistake when writing this.

The problem was incompatible versions... I think... I'm using latest tag so this is probably the stable, incompatible version.

papaj-na-wrotkach commented 1 year ago

Is the latest version compatible with dockers daily/daily-amd64 tag?

Mik1ll commented 1 year ago

Is the latest version compatible with dockers daily/daily-amd64 tag?

Yes, last I checked it should be. Since it's unstable, it may break on future updates without warning.

papaj-na-wrotkach commented 1 year ago

Do you have the hash of the exact image you tried? Latest daily (b662ca0268e9) isn't working for me.

Should I also update Shoko Desktop (compile it myself)?

Mik1ll commented 1 year ago

Do you have the hash of the exact image you tried? Latest daily (b662ca0268e9) isn't working for me.

I just pulled that release and it seems to load the plugin fine. Maybe turn on TraceLog in settings-server.json and look for any lines with Loader.AddPlugins Trying to load ... There should be three lines, KeraLua.dll, LuaRenamer.dll, and NLua.dll.

Should I also update Shoko Desktop (compile it myself)?

Desktop daily is also released on https://shokoanime.com/downloads/

papaj-na-wrotkach commented 1 year ago

The folder is actually named plugins. I made a mistake when writing this.

Okay, I was wrong here. I made a mistake writing this and my folder certainly was named wrong :sweat_smile: Now everything works fine - even on the latest tag