Project containing miscellaneous projects related to touhou.fm
Find a file
2020-09-12 23:25:56 +02:00
.gitignore Initial public version 2015-03-03 15:37:21 +01:00
db-mgr.py Fixed accidental shared socket and pid file usage 2015-03-12 16:08:16 +01:00
LICENSE Add LICENSE 2020-09-12 23:25:56 +02:00
radiocore.py Fixed accidental shared socket and pid file usage 2015-03-12 16:08:16 +01:00
README.md Update README.md 2015-03-03 15:45:46 +01:00

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.