diff options
author | Stefan BrĂ¼ns <stefan.bruens@rwth-aachen.de> | 2022-02-13 16:13:08 +0100 |
---|---|---|
committer | David Faure <faure@kde.org> | 2023-08-17 07:57:05 +0000 |
commit | f2e33e5b990c749cd3b94ac2ef85a1a4da71dce9 (patch) | |
tree | fbe2194f9c524393c99d6d338913443b32b54c79 | |
parent | 0ce0d07ecc2f29760dc63315843f183b1c288e35 (diff) |
Add support for newer AAXC Audible Audiobook format
The older AAX format contains the actual decryption key, protected with
a trivial account specific master key.
The new format, used by Audible since 2019, no longer embeds the
decryption key.
-rw-r--r-- | data/freedesktop.org.xml.in | 7 | ||||
-rw-r--r-- | tests/mime-detection/list | 2 | ||||
-rw-r--r-- | tests/mime-detection/test.aaxc | bin | 0 -> 4096 bytes |
3 files changed, 9 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in index 6e178d2..ec462c6 100644 --- a/data/freedesktop.org.xml.in +++ b/data/freedesktop.org.xml.in @@ -4353,6 +4353,13 @@ command to generate the output files. </magic> <glob pattern="*.aax"/> </mime-type> + <mime-type type="audio/vnd.audible.aaxc"> + <comment>Audible Enhanced audio</comment> + <magic priority="50"> + <match type="string" value="ftypaaxc" offset="4"/> + </magic> + <glob pattern="*.aaxc"/> + </mime-type> <mime-type type="audio/x-dff"> <comment>DSDIFF Audio</comment> <acronym>DSDIFF</acronym> diff --git a/tests/mime-detection/list b/tests/mime-detection/list index 697594d..1414992 100644 --- a/tests/mime-detection/list +++ b/tests/mime-detection/list @@ -608,6 +608,8 @@ stranger_-_run.mod audio/x-mod # Copied from https://github.com/inAudible-NG/audible-samples test.aa audio/x-pn-audibleaudio test.aax audio/vnd.audible.aax +# Audible AAX without embedded file keys (2019 and later) +test.aaxc audio/vnd.audible.aaxc # MPEG-4 files mp4v1-video-header.mp4 video/mp4 mp4v2-video-header.mp4 video/mp4 diff --git a/tests/mime-detection/test.aaxc b/tests/mime-detection/test.aaxc Binary files differnew file mode 100644 index 0000000..72ab707 --- /dev/null +++ b/tests/mime-detection/test.aaxc |