music: indicate compressed format

This commit is contained in:
Alexander Capehart
2026-01-03 17:36:16 -07:00
parent 82c14d0c05
commit 5fcc1537ba
2 changed files with 3 additions and 2 deletions
@@ -75,7 +75,8 @@ sealed class TabNode {
companion object {
fun fromString(str: String): TabNode? {
if (str.startsWith("t")) {
return when (val id = str.getOrNull(1)) {
// new compressed id format
return when (str.getOrNull(1)) {
't' -> Root
'm' -> More
's' -> Home(MusicType.SONGS)
@@ -203,7 +203,7 @@ sealed interface Music {
*/
fun fromString(uid: String): UID? {
if (uid.startsWith("u")) {
// switch to new micro-format parsing
// new compressed-format parsing
val microFormat =
when (uid.getOrNull(1)) {
Format.AUXIO.microNamespace -> Format.AUXIO