Getting Started
Lua Renamer allows users to rename their collection via an Lua 5.4 interface.
This renamer is fitting for users with more advanced collection renaming/organization requirements.
Limitations: The Lua environment is sandboxed such that interaction with the operating system/file system/networking is unavailable.
For support/questions join the Shoko Discord server and message mikill
.
Installation
- Download the the release appropriate for your Shoko Server version.
- The latest release should be compatible with current Stable.
- Pre-releases will be compatible with Shoko Daily depending on the Abstractions Version, check release notes and Shoko Server tags for compatibility.
- Unzip the folder into the Shoko plugin directory, create the folder if it does not exist.
- (Windows)
C:\ProgramData\ShokoServer\plugins
- (Docker) wherever the container location
/home/shoko/.shoko/Shoko.CLI/plugins
is mounted.
- (Windows)
- Restart Shoko Server.
- (Recommended) Install VS Code and the Lua extension to edit your script.
- Follow instructions in the next section to add a script.
Usage
With Shoko Desktop
- Open the Server WebUI (port 8111 by default) and log in
- Navigate to Utilities/File Rename.
- Click the cog wheel icon to open the renamer config panel.
- Create a new renamer config, enter a name and select LuaRenamer from the select box. If LuaRenamer is not visible, the renamer failed to load, check the server logs.
- Add the files (button next to the config cog wheel) you wish to rename. The rename/move preview will automatically populate with changes you make.
- The Move checkbox chooses whether the files are renamed and moved or only renamed.
- The config can be set to be the Default, which is used when Rename On Import and Move On Import are set in the Import Settings.
- Once you are happy with the preview you can save the config and click Rename Files to rename/move+rename the previewed files.
Renaming on Import
If you wish to rename/move your files on import you must do two things:
- Set Rename/Move On Import to true in Shoko settings (via WebUI or settings-server.json).
- Ensure your renamer config is saved as the Default.