Small application to capture artist/track info from streaming an Internet Radio station. Stores the data in a very simple Sqlite3 database.
I found an Internet Radio station that I can't get enough of. They play so much stuff that a corporate radio station would never play. I decided I wanted to keep track of all the great music played so I could go back later and make my own playlists. Very much a work-in-progress.
- mpv
- mpv script written in Lua
- Sqlite3 database with two tables
- Bash script to manipulate the files and load database
- cron job to run the Bash script and desired interval
The program flow:
- Stream an Internet Radio feed with mpv
- mpv script captures artist/track info on each change and writes to a file
- cron job executes a Bash script (once a week in my case)
- Bash script:
- reformats and sorts mpv captued data into new file
- processes new file with Sqlite3 into a staging table
- has Sqlite3 remove station break data and move to target table
- writes log of activities
- deletes intial file for next use
- Some extra SQL scripts are included for viewing data in the database
- Clean up code
- Improve the documentation
- Provide installation instructions
- Add DDL for database and tables
- Add license info (this is FOSS, not proprietary)
mpv-capture is licensed under the GNU General Public License v3.0 or later
See LICENSE to see the full text.