y20k / transistor

Transistor - Simple Radio App for Android
http://y20k.org/transistor/
MIT License
433 stars 121 forks source link

[BUG] Radiofonia Radio station doesn't work #398

Closed the4anoni closed 2 years ago

the4anoni commented 2 years ago

Describe the bug Description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Try to add this radio station http://www.rmfon.pl/n/radiofonia.pls
  2. App will trow an error.

Expected behavior Station should be added succesfully, since it works in VLC just fine.

Device:

Edit: I am sorry, that I've used wrong template.

y20k commented 2 years ago

Hi @the4anoni

Transistor performs a mime type check on stream URLs. The address http://www.rmfon.pl/n/radiofonia.pls returns audio/scpls. That is as far as I know not the correct mime type for a PLS file. The correct type would be audio/x-scpls. That is why Transistor rejects the stream.

You can try to add one of the raw streaming links that the file radiofonia.pls contains:

File1=http://217.74.72.6/radiofonia File2=https://rs202-krk-cyfronet.rmfstream.pl/radiofonia File3=https://rs101-krk-cyfronet.rmfstream.pl/radiofonia File4=https://rs101-krk.rmfstream.pl/radiofonia File5=https://rs202-krk-cyfronet.rmfstream.pl/radiofonia File6=https://rs203-krk-cyfronet.rmfstream.pl/radiofonia File7=https://rs103-krk.rmfstream.pl/radiofonia File8=https://rs102-krk.rmfstream.pl/radiofonia File9=https://rs202-krk.rmfstream.pl/radiofonia File10=https://rs102-krk-cyfronet.rmfstream.pl/radiofonia

PS. A handy online mime type checker => https://fabianstiehle.com/mimetype/