johnbartkiw / mycroft-skill-tunein

Add internet music streaming from tunein
MIT License
12 stars 14 forks source link

Some stations fail playing #1

Closed andlo closed 5 years ago

andlo commented 5 years ago

Beeing a dane, I listen to danish stations. But those from Danish Radio seems to error

Trying stream dr p1 starts but fails and this is in the log

High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.23.8; written and copyright by Michael Hipp and others
        free software (LGPL) without any warranty but with best wishes
main: [src/mpg123.c:703] error: Unknown mpeg MIME type audio/x-mpegurl - is it perhaps a playlist (use -@)?
main: [src/mpg123.c:704] error: If you know the stream is mpeg1/2 audio, then please report this as mpg123 bug
andlo commented 5 years ago

yah the problem is that some stations uses .m3u file and not a mp3 file. So the play_mp3 command just passes the url to the player (which on picroft and mark1 are mpg123. It can pay streams from a m3u file with the comandparameter -@ as is told in the log. But there dosnt seem to be a way to pass that parameter to the mpg123 via the play_mp3 function :(

johnbartkiw commented 5 years ago

Temp fix is in place