Using gnome-mplayer to play DVB radio without asking whether you want to resume
April 15, 2013 [Tech]When I launch gnome-mplayer to play back radio over my TV card (DVB), it asks me whether I want to resume from where I left off, which doesn't make sense for this kind of stream.
I couldn't find a way to switch this off, but a little hacking with gnome-mplayer's sqlite database does the trick.
Here's my Radio 4 launch script:
#!/bin/bash URI="dvb://BBC Radio 4" sqlite3 ~/.config/gnome-mplayer/gnome-mplayer.db "DELETE FROM media_entries WHERE uri='${URI}'" gnome-mplayer "${URI}"