Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to play a random album (or artist). #26

Open
vext01 opened this issue Nov 5, 2021 · 4 comments
Open

No way to play a random album (or artist). #26

vext01 opened this issue Nov 5, 2021 · 4 comments
Labels
enhancement New feature or request Hiby OS

Comments

@vext01
Copy link
Owner

vext01 commented Nov 5, 2021

As far as I can tell, there is no way (in HibyOS) to chose a random album to play.

The best you can do is:

  • go to the "all songs" tab
  • play something
  • put the play mode to shuffle
  • hit "next" on the player to find a random song
  • in the menu choose "go to album"
  • start the first track of the album playing
  • turn off shuffle mode

Compare this to say, Navidrome:

image

There is a "random album" button, which shows a list of albums in random order. You just hit play on one. Easy.

Would be nice if you could do the same for artists too.

@vext01 vext01 added enhancement New feature or request Hiby OS labels Jan 18, 2022
@SuperTaiyaki
Copy link

I modified the R3 Pro/Saber firmware to add this album shuffle: https://github.com/SuperTaiyaki/hiby-firmware-tools/blob/master/patch.sh#L16
Hijacking the genre list was the best way I could come up with. Should be applicable to anything on Hiby OS, but I only have an R3 Pro to test.

@vext01
Copy link
Owner Author

vext01 commented Mar 17, 2022

I love what you are doing here!

@vext01
Copy link
Owner Author

vext01 commented Mar 17, 2022

@SuperTaiyaki Using your patching, are you able to make it so that searches are not anchored to the start of the search term?

See #16.

@SuperTaiyaki
Copy link

@vext01
I think the relevant query is
INSERT INTO SEARCH_TABLE SELECT * FROM MEDIA_TABLE WHERE rowid in(select rowid from MEDIA_TABLE WHERE name like ?)
with similar versions for artist, album and genre. To remove the anchoring I'd need to change it to LIKE '%'||?, and it looks like there's not enough room in the string table to fix it with sed like I did everything else. There's no collate pinyin to delete to make space either. Will give it some more thought.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Hiby OS
Projects
None yet
Development

No branches or pull requests

2 participants