A JScript Panel 3 script for foobar2000 that fetches the currently playing song from Gensokyo Radio and updates metadata/artwork in your player.
- Fetches track info (title, artist, album, year, circle) from the Gensokyo Radio API
- Downloads album art automatically (supports PNG and JPG)
- Updates metadata using External Tags
- Attaches album art directly to the playing track
- Install JScript Panel 3 and External Tags in foobar2000.
- Download
gensokyo_radio.jsfrom this repository. - Create a new JScript Panel in foobar2000.
- Load the script.
- Edit the variables at the top of the script to match your setup:
var grImgFolder = ""; var grImgFilename = ""; var tf_rs = fb.TitleFormat("%radio%");
- Add a custom tag for the radio station:
- Shift + Right-click the Gensokyo Radio entry → Edit External Tags
- Under the Metadata tab, click + Add New
- Add a field named
Radio(or the name used invar tf_rs) with the exact value:Gensokyo Radio
- Enable wrapping for External Tags:
- Shift + Right-click the Gensokyo Radio entry → Wrap for External Tags
- This ensures album art is pulled correctly for the radio station.
- Play the Gensokyo Radio station as normal and enjoy!
- Touhou Project – Original music composed by ZUN of Team Shanghai Alice.
- Gensokyo Radio – Name, branding, and APIs used in this script remain the property of LunarSpotlight Media. APIs are used with permission for this project.
- Foobar2000 – Music player used as the platform for this panel. See foobar2000 official site for licensing and credits.
- External Tags – Metadata management component for foobar2000, created by Case.
- JScript Panel 3 – Scripting environment for foobar2000 panels, created by marc2k3.
- Theme & Visual Inspiration – Design inspired by a dark-mode foobar2000 setup created by griff_xddx.
This project is released under the MIT License. For licensing questions, permissions, or inquiries about usage, please contact me directly. This section aims to give proper credit but does not constitute legal advice.
