Skip to content

Conversation

@Daenara
Copy link

@Daenara Daenara commented Mar 27, 2021

Rewrote server function so the first entry is selected if the path ends on a playlist or folder. If the path ends on a song, it will still play that. This will end on a random folder if the path is not selected carefully, but that happens anyway. I got rid of the old attempts for loop and replaced it by just looping over the layers of the path in order. For retries in case of server errors I added the retries functionality that can be used optionally.

Also added a menu reset at the start so it will work if the receiver was left on something other than the root menu for SERVER. Some tests as well as playing a playlist once and not switching the input to something other than server left me in various stages of the menu which made navigating it hard. This way it will always start with the server selection, no matter what happened before.

Lastly I added a retry functionality so a few numbers of retries can be specified in case of [No Content] response form the server thought I could not test that because that behavior is nothing I can command to happen for a test. This will waste quite a bit of time if there is a typo in the path, something ended up in there that does not exist on the server or the selected server is not available for some reason because all of those things will also cause retries but I am pretty sure the old logic had the same issue. As long as the number of retries is set to something smallish this should not cause issues and it has to be set by whoever uses the framework anyway since it defaults to no retries.

Fixes #85

Rewrote server function so the first entry is selected if the path ends on a playlist or folder. If the path ends on a song, it will still play that.

Also added a menu reset at the start so it will work if the receiver was left on something other than the root menu for SERVER

Lastly I added a retry functionality so a few numbers of retries can be specified in case of [No Content] response form the server
@Daenara Daenara mentioned this pull request Mar 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug in server function

1 participant