| .gitignore | ||
| db-mgr.py | ||
| LICENSE | ||
| radiocore.py | ||
| README.md | ||
touhoufm-radio
The RadioCore of TouHou.FM. These scripts manage the automatic playback of the radio.
radiocore.py
This script is in charge for filling the current MPD playlist with songs. It tries to fill the playlist with songs till the end of the playlist is past the current hour. This allows it to change the active radio programme on the start of an hour. Additionally, it takes song requests into account and will prioritize those songs being chosen over random songs.
db-mgr.py
This script is in charge for filling the MySQL database containing all information about the songs. The script will index all the files available to MPD.
The script will first add all the files to a file table. After all the files have been added, it will check for any unassigned files by checking the song_id value. Every song will then be searched or created by using the exported media tags from MPD. If required, albums, artists and albumartists are automatically created.