Skip to content

Commit

Permalink
Update SemanticLyrics.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
nift4 authored Feb 6, 2025
1 parent f495e08 commit 740ea90
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,7 @@ fun parseTtml(lyricText: String, trimEnabled: Boolean): SemanticLyrics? {
val type = parser.getAttributeValue(ttm, "lang")
// TODO do something with this information
parser.nextAndThrowIfNotEnd()
}
if (parser.name == "iTunesMetadata") {
} else if (parser.name == "iTunesMetadata") {
while (parser.nextTag() != XmlPullParser.END_TAG) {
if (parser.name == "songwriters") {
while (parser.nextTag() != XmlPullParser.END_TAG) {
Expand All @@ -705,7 +704,7 @@ fun parseTtml(lyricText: String, trimEnabled: Boolean): SemanticLyrics? {
}
}
parser.nextAndThrowIfNotEnd()
}
} else parser.skipToEndOfTag()
}
} else // probably <styling> or <layout>
parser.skipToEndOfTag()
Expand Down

0 comments on commit 740ea90

Please sign in to comment.