Skip to content

bmgjet/Stations

Repository files navigation

Stations: 1.0.1

Permission required:
Stations.use

Command:
/station url        (Url needs to be a mp3)

example
/station "https://dl34.320ytmp3.com/file/Thunder.mp3"


Note:
You cant use youtube or other video streaming links since they are mp4.
You can how ever use a mp3 ripping websites download link such as "https://320ytmp3.com/en7/"

Such as go there. Paste your youtube link in and convert it.
Then select the lowest quality and rightclick on download button to copy its link.

Youtube video showing the process below:
www.youtube.com/embed/-QgAmtFja9s

Stations: 1.0.2

Same as above for basic usage.
Adds
Permissions:
Stations.admin
Stations.youtube

User Command:
/yt youtubeurl          (Url needs to be a youtube link)

Changing settings:
/station command setting

Commands:
url link         (followed by link to your stationserver.exe)
mp3 set       (Switches between needing mp3 or not needing mp3 in stations links.)
cooldown x (Time out in seconds between being able to use the command)

StationServer.exe

Converts youtube links sent to it into a mp3 stream.
Must be ran with admin privelages to allow it to open selected port.

How to setup:
Put StationServer.exe in a new folder on the same windows server as your RustServer or on a Windows VPS.

Download FFMPEG and extract all its files into the same folder as StationServer.exe
Create a shortcut or startup script to pass setup arguments to StationServer.
They are in the following format.

StationServer.exe "Port" "Quality" "Timeout" "Dir_Stations.json" "Dir_cookies.txt" "Extra Args for youtube-dl"

Example would be
F:\Rust\StationServer.exe 1234 64K 60000 F:\Rust\RustServerFiles\oxide\data\Stations.json F:\Rust\Debug\cookies.txt "--max-filesize 10m "

Which has StationServer.exe in rust folder on F drive.
Open on port 1234
Encodes mp3 to 64Kbit
60 Seconds timeout (Stops download/encode if it takes longer then this)
Directory for Stations.json data file
Directory of dumpped cookies.txt file to allow downloading youtube links that need an account.
Extra args can be anything youtube-dl supports. In the example its limiting to max for 10mb downloads to stop people getting really long mp3 files.

if you dont have a cookies.txt you can leave it blank with "" and youtube will download with no logged in account.

If you dont provide a directory for Stations.json then downloads wont be limited to in game users that have called the command. And any one could use your StationServer to convert links if they use the correct format.

Now run it and it will open the port you selected with the settings you provided.

About

Manually set radio station with url

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages