music: add support for id3v2.4 multi value tags

Add support for ID3v2.4-style multi-value tags separated by a null
terminator.

This temporarily removes most other forms of separator parsing in the
app. My plan is to reunify it under a new separator setting that allows
the user to select how multi-value tags are separated in their library.
Separator parsing tends to be too destructive by default, so this tends
to be a good option overall.

This commit does require ExoPlayer to be forked once again to add
ID3v2.4 separator support.
This commit is contained in:
Alexander Capehart
2022-09-07 21:00:24 -06:00
parent 2690e8343a
commit 2033e2cb1f
5 changed files with 68 additions and 103 deletions
+12 -4
View File
@@ -19,7 +19,7 @@ import re
# WARNING: THE EXOPLAYER VERSION MUST BE KEPT IN LOCK-STEP WITH THE FLAC EXTENSION AND
# THE GRADLE DEPENDENCY. IF NOT, VERY UNFRIENDLY BUILD FAILURES AND CRASHES MAY ENSUE.
EXO_VERSION = "2.18.1"
# EXO_VERSION = "2.18.1"
FLAC_VERSION = "1.3.2"
FATAL="\033[1;31m"
@@ -95,9 +95,9 @@ sh("rm -rf " + exoplayer_path)
sh("rm -rf " + libs_path)
print(INFO + "info:" + NC + " cloning exoplayer...")
sh("git clone https://github.com/google/ExoPlayer.git " + exoplayer_path)
sh("git clone https://github.com/OxygenCobalt/ExoPlayer.git " + exoplayer_path)
os.chdir(exoplayer_path)
sh("git checkout r" + EXO_VERSION)
sh("git checkout auxio")
print(INFO + "info:" + NC + " assembling flac extension...")
flac_ext_aar_path = os.path.join(exoplayer_path, "extensions", "flac",
@@ -111,9 +111,17 @@ sh(ndk_build_path + " APP_ABI=all -j4")
os.chdir(exoplayer_path)
sh("./gradlew extension-flac:bundleReleaseAar")
print(INFO + "info:" + NC + " assembling extractor component...")
extractor_aar_path = os.path.join(exoplayer_path, "library", "extractor",
"buildout", "outputs", "aar", "library-extractor-release.aar")
sh("./gradlew library-extractor:bundleReleaseAar")
os.chdir(start_path)
sh("mkdir " + libs_path)
sh("cp " + flac_ext_aar_path + " " + libs_path)
sh("cp " + extractor_aar_path + " " + libs_path)
print(OK + "success:" + NC + " completed pre-build")