Skip to content

Commit a70e167

Browse files
committed
Others have AI hallucinations in their project, and I get to deal with the consequences huh
1 parent a9bf488 commit a70e167

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

app/src/main/java/org/akanework/gramophone/logic/utils/SemanticLyrics.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,11 @@ fun parseTtml(audioMimeType: String?, lyricText: String): SemanticLyrics? {
13851385
var hasItunesNamespace = timing != null
13861386
if (!hasItunesNamespace) {
13871387
for (i in 0..<parser.getNamespaceCount(parser.depth)) {
1388-
if (parser.getNamespaceUri(i) == itunes || parser.getNamespaceUri(i) == itunesInternal) {
1388+
if (parser.getNamespaceUri(i) == itunes ||
1389+
parser.getNamespaceUri(i) == itunesInternal ||
1390+
// this namespace originates from a slop lyric generator where AI hallucinated the
1391+
// namespace. why do i even support parsing this :sob:
1392+
parser.getNamespaceUri(i) == "http://music.apple.com/lyrics") {
13891393
hasItunesNamespace = true
13901394
break
13911395
}

0 commit comments

Comments
 (0)