music: indicate compressed format
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user