### Updates
YouTube has started blocking audio downloads via `yt-dlp` by banning the server where the API is hosted.
To continue creating custom discs, **two new options are now available**:
- **Use** `yt-dlp` **locally on your Minecraft server**:
Set `localYtDlp: true` in `config.yml` to enable this option.
The plugin will **automatically download and keep yt-dlp up to date**.
When using this method:
- The audio will be downloaded as an `.mp3` file to the `audio_to_send` folder.
- Then, the audio is sent to the API server to be processed and added to your server resource pack.
- A new command `/customdisc update` is now available to **manually force an update of yt-dlp** without restarting the server.
> This method is unlikely to work on **shared Minecraft hosting providers** (like Shockbyte), as they often block external tool execution (like yt-dlp) or their IP ranges are already banned by YouTube (just like my API server currently is).
- **Manually upload** `.mp3` **files to the** `audio_to_send` folder:
You can now manually download your audio as `.mp3` and place it in the `audio_to_send` folder.
Make sure the file name is simple (no spaces or special characters).
When creating a custom disc, instead of providing a URL, simply use the file name of your `.mp3` (including the ".mp3" extension).
> This method only works for **Minecraft server admins**, as it requires access to the server file system.
The [README.md](https://github.com/TheoDgb/URLCustomDiscs/blob/main/README.md) file has been updated with new instructions.
### Warning
If you have **already installed** the plugin on your server and want to use this new version, please make sure to **back up your token and downloadPackURL** from `config.yml`.
Then, **delete** `config.yml`, install the new version of the plugin, start your Minecraft server so it regenerates the file, and **paste your saved token and downloadPackURL back into it**.
Your previously created discs will **not** be deleted!
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }