music: indicate compressed format
This commit is contained in:
@@ -75,7 +75,8 @@ sealed class TabNode {
|
|||||||
companion object {
|
companion object {
|
||||||
fun fromString(str: String): TabNode? {
|
fun fromString(str: String): TabNode? {
|
||||||
if (str.startsWith("t")) {
|
if (str.startsWith("t")) {
|
||||||
return when (val id = str.getOrNull(1)) {
|
// new compressed id format
|
||||||
|
return when (str.getOrNull(1)) {
|
||||||
't' -> Root
|
't' -> Root
|
||||||
'm' -> More
|
'm' -> More
|
||||||
's' -> Home(MusicType.SONGS)
|
's' -> Home(MusicType.SONGS)
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ sealed interface Music {
|
|||||||
*/
|
*/
|
||||||
fun fromString(uid: String): UID? {
|
fun fromString(uid: String): UID? {
|
||||||
if (uid.startsWith("u")) {
|
if (uid.startsWith("u")) {
|
||||||
// switch to new micro-format parsing
|
// new compressed-format parsing
|
||||||
val microFormat =
|
val microFormat =
|
||||||
when (uid.getOrNull(1)) {
|
when (uid.getOrNull(1)) {
|
||||||
Format.AUXIO.microNamespace -> Format.AUXIO
|
Format.AUXIO.microNamespace -> Format.AUXIO
|
||||||
|
|||||||
Reference in New Issue
Block a user