***Sorry for the doublepost. I don't even see an edit option, and when I forced an edit (editpost.php) it says I have a 5 minute time frame to edit my post, which is longer than it takes for an admin to approve my post. So sorry for this, but Ill forget to post tomorrow. ***
Anyways, found a bug.
Streams will actually overlay on top of each other. I added WSKY, and it was kind of fun to hear Coast to Coast AM with classical music playing in the background.
Because of this, I added
Code:
killall sox
rm /var/tmp/bookmark
rm /var/tmp/progress
to the beginning of the playinternetradio.sh
I added the rm bookmark and progress lines as well because it looks from your code that it will still be counting since the bookmarks code is based on the time between started and when the bookmark is saved. So if the user hits the bookmarks button later, it would still add on the time they were listening to internet stream and not the (assumed) audio book. Figured its better to listen to a part of the book again, instead of skipping past whole sections of the audio book.