hang while trying to import .PLS #466
Describe the bug
Description of what the bug is.
Steps to reproduce the behavior:
- Go to 'initial screen'
- Tap on '+ Add new station'
- enter 'https://playerservices.streamtheworld.com/pls/XHMFM.pls'
- A moving bar appears and the application seems to hang in a loop
XHMFM added as a single radio station. see also comment on bug #453
- Irrelevant, tested on multiple devices and networks
The PLS file is a single radio station. Streamtheworld.com is a very widely used service. Their PLS lists a number of dynamically allocated servers, each of which plays the same radio stream. I believe they scale up/down those servers based on number of listeners / traffic, so Transistor should pull the playlist every time the user tries to tune-in and select one of the servers for streaming, but not save that one server (e.g. https://24923.live.streamtheworld.com:443/XHMFM_SC) because it can and does change (see also comment on bug #453). It would be nice if there was some automated mechanism to determine which of the listed servers is the least busy (ping?) and to switch to another server when the current broadcast goes wrong.
I am currently reworking the "Add Station" workflow (see
a647327d73). Since I do not have a lot of time at the moment this rework will probably take some time.
But I will definitively test the new mechanism on how it handles stations that are manually added via PLS. And I am glad to have a PLS with multiple embedded streams to test. 👍
Transistor should pull the playlist every time the user tries to tune-in and select one of the servers for streaming, but not save that one server
I understand what you are suggesting, but that would be actually a pretty big change to the way Transistor stores radio stations at rest and how it handles stations internally. (Transistor just stores the actual streaming links.) Since I am notoriously short on time I have no plans to implement such a change. Sorry. I hope you are not too disappointed.
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?