Replies: 15 comments 37 replies
-
Beta Was this translation helpful? Give feedback.
-
|
Did a test with mutagen to read all the tags inside the music files. It took 132 seconds to read 6198 songs on my M1 Pro. |
Beta Was this translation helpful? Give feedback.
-
|
Wow, nice research! The a:\ path prefix is important , our script will need to convert local file paths to HiBy's internal SD card notation. The 132 second scan time for 6198 songs on an M1 is already a massive improvement over what the device can do. For the initial version should we focus on just the core tables needed to get the library displaying correctly — MEDIA_TABLE, ALBUM_TABLE, ARTIST_TABLE, GENRE_TABLE, FORMAT_TABLE and MEDIA2_TABLE — and leave the secondary tables for later? |
Beta Was this translation helpful? Give feedback.
-
|
@noisetta I modified |
Beta Was this translation helpful? Give feedback.
-
|
@noisetta Changed Patched the entry inside settings to execute When clicking the entry inside the settings the database file is copied to the internal memory and the device freezes for 1-2 seconds before it restarts (this is needed otherwise the database isn't reloaded) Note: the restart does not take much time, from my understanding only Found some bugs with the script generated database. DSD files are not scanned correctly and the alphabetical sorting does not work, the songs are all scrambled. Will fix this and send you the script with the patched binary. |
Beta Was this translation helpful? Give feedback.
-
|
Ok, the script finds all the music files on Windows and Linux. Only macOS has problems finding some of them. |
Beta Was this translation helpful? Give feedback.
-
|
Really clever approach using the existing settings entry , much cleaner than a boot script. The NFD/NFC issue on macOS is a known quirk of Apple's filesystem, good find on the Windows rename workaround. Take your time with the DSD and sorting fixes, looking forward to seeing the script when it's ready. |
Beta Was this translation helpful? Give feedback.
-
|
That's much more user friendly and I feel the backup direction is a useful bonus feature. |
Beta Was this translation helpful? Give feedback.
-
|
FINALLY some progress!!! |
Beta Was this translation helpful? Give feedback.
-
|
Some more progress has been done. The copy to SD option works. |
Beta Was this translation helpful? Give feedback.
-
|
For today this is enough. I need some good sleep. |
Beta Was this translation helpful? Give feedback.
-
|
IT WORKS!!! No functions needed from the database updater. |
Beta Was this translation helpful? Give feedback.
-
|
@noisetta Here's the firmware with the patched binary https://drive.google.com/file/d/16ucuIYDbj55gbkQz1YcABKBdwoF__taf/view?usp=sharing And here's the script for the creation of the database Update_Database.py For now the script only works if run from the SD Card with a valid The script uses mainly mutagen with a fallback to tinytag if mutagen fails to read the tags. For now only the english If all is good for you I'll finish translating all the other languages (Deepl is a good candidate to have consistent translations across all languages) and create a PR for the theme to have a new folder named Note: the options inside the Database Manager page will show a dot. This is inherited from the Font size page I used as a template to make the patch. Nothing I can do about it. |
Beta Was this translation helpful? Give feedback.
-
|
@noisetta Found the function to reload the database without rebooting and patched the binary. Unpack the firmware I sent you before and build it using this hiby_player.zip |
Beta Was this translation helpful? Give feedback.
-
|
@noisetta The GUI app for macOS is complete. How do you want me to send it to you? |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
Idea
Instead of rescanning the music library on the device after adding music,
build the SQLite database directly on the PC and have the device use it on boot.
How It Would Work
hiby_player.shdetects pre-built database on SD card and copiesit to internal storage
Benefits
Implementation Plan
hiby_player.shto detect and copy pre-built databaseDatabase schema is fully documented from ADB exploration — see roadmap discussion for details.
Beta Was this translation helpful? Give feedback.
All reactions