From e9a7a4c7802b25fb620cc587d455e31b7fb81646 Mon Sep 17 00:00:00 2001 From: UKDTOM Date: Thu, 11 Mar 2021 15:48:25 +0100 Subject: [PATCH] #286 Audio Track fields added --- CHANGELOG.md | 1 + docs/modules/ExportTools/Fields.md | 32 ++++--- .../modules/ExportTools/defs/def-Episode.json | 2 +- .../modules/ExportTools/defs/def-Fields.json | 96 +++++++++++++++++-- .../modules/ExportTools/defs/def-Track.json | 23 +++++ 5 files changed, 134 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index addbec6..8b3f693 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ * [#106 Allow Export of Photos](https://github.com/WebTools-NG/WebTools-NG/issues/106) * [#285 Photos allow cust levels](https://github.com/WebTools-NG/WebTools-NG/issues/285) +* [#286 Add missing fields found so far](https://github.com/WebTools-NG/WebTools-NG/issues/286) ## V0.2.01 diff --git a/docs/modules/ExportTools/Fields.md b/docs/modules/ExportTools/Fields.md index 5312f6a..a398c7d 100644 --- a/docs/modules/ExportTools/Fields.md +++ b/docs/modules/ExportTools/Fields.md @@ -11,24 +11,33 @@ If a field is marked as `X` it means you can export it for the type of export Added|X|X|X|X|X|X|X| Art url|X|?|X|X|?|X|X| Audience Rating|X|?|X|?|?|?|?| -Audio Stream Audio Channel Layout|X|X|?|?|?|?|?| -Audio Stream Bit Depth|X|X|?|?|?|?|?| -Audio Stream Bitrate|X|X|?|?|?|?|?| +Audio Stream Album Gain|?|?|?|?|?|X|?| +Audio Stream Album Peak|?|?|?|?|?|X|?| +Audio Stream Album Range|?|?|?|?|?|X|?| +Audio Stream Audio Channel Layout|X|X|?|?|?|X|?| +Audio Stream Bit Depth|X|X|?|?|?|X|?| +Audio Stream Bitrate|X|X|?|?|?|X|?| Audio Stream Bitrate Mode|X|X|?|?|?|?|?| -Audio Stream Channels|X|X|?|?|?|?|?| -Audio Stream Codec|X|X|?|?|?|?|?| +Audio Stream Channels|X|X|?|?|?|X|?| +Audio Stream Codec|X|X|?|?|?|X|?| Audio Stream Codec ID|X|X|?|?|?|?|?| Audio Stream Default|X|X|?|?|?|?|?| Audio Stream Display Title|?|X|?|?|?|?|?| Audio Stream Duration|X|X|?|?|?|?|?| +Audio Stream End Ramp|?|?|?|?|?|X|?| Audio Stream Extended Display Title|?|X|?|?|?|?|?| +Audio Stream gain|?|?|?|?|?|X|?| Audio Stream Index|X|X|?|?|?|?|?| Audio Stream Language|X|X|?|?|?|?|?| Audio Stream Language Code|X|X|?|?|?|?|?| +Audio Stream loudness|?|?|?|?|?|X|?| +Audio Stream LRA|?|?|?|?|?|X|?| +Audio Stream Peak|?|?|?|?|?|X|?| Audio Stream Profile|X|X|?|?|?|?|?| -Audio Stream Required Bandwidths|X|X|?|?|?|?|?| -Audio Stream Sampling Rate|X|X|?|?|?|?|?| -Audio Stream Selected|X|X|?|?|?|?|?| +Audio Stream Required Bandwidths|X|X|?|?|?|X|?| +Audio Stream Sampling Rate|X|X|?|?|?|X|?| +Audio Stream Selected|X|X|?|?|?|X|?| +Audio Stream Start Ramp|?|?|?|?|?|X|?| Audio Stream Title|X|X|?|?|?|?|?| Chapter Count|X|?|?|?|?|?|?| Chapter Source|X|?|?|?|?|?|?| @@ -63,11 +72,11 @@ Media Audio Channels|X|X|?|?|?|X|?| Media Audio Codec|X|X|?|?|?|X|?| Media Bitrate|X|X|?|?|?|X|?| Media Container|X|X|?|?|?|X|X| +Media Duration|?|X|?|?|?|X|?| Media Height|X|X|?|?|?|?|X| Media ID|?|?|?|?|?|?|X| Media Title|?|X|?|?|?|?|?| Media Video Codec|X|X|?|?|?|?|?| -Media Video Duration|?|X|?|?|?|?|?| Media Video FrameRate|X|X|?|?|?|?|?| Media Video Profile|?|X|?|?|?|?|?| Media Video Resolution|X|X|?|?|?|?|?| @@ -75,14 +84,15 @@ Media Width|X|X|?|?|?|?|X| MetaDB Link|X|?|?|?|?|?|?| MetaData Language|X|X|?|?|?|?|?| Original Title|X|?|?|?|?|?|?| -Part Accessible|X|X|?|?|?|?|X| +Part Accessible|X|X|?|?|?|X|X| Part Container|X|X|?|?|?|X|X| Part Deep Analysis Version|X|X|?|?|?|X|?| Part Duration|X|X|?|?|?|X|?| -Part Exists|X|X|?|?|?|?|X| +Part Exists|X|X|?|?|?|X|X| Part File|X|X|?|?|?|X|X| Part File Combined|X|X|?|?|?|X|X| Part File Path|X|X|?|?|?|X|X| +Part has Thumbnail|?|?|?|?|?|X|?| Part Indexed|X|X|?|?|?|?|?| Part Optimized for Streaming|X|X|?|?|?|?|?| Part Orientation|?|?|?|?|?|?|X| diff --git a/src/components/modules/ExportTools/defs/def-Episode.json b/src/components/modules/ExportTools/defs/def-Episode.json index c56ca34..f2357f8 100644 --- a/src/components/modules/ExportTools/defs/def-Episode.json +++ b/src/components/modules/ExportTools/defs/def-Episode.json @@ -73,10 +73,10 @@ "Media Audio Codec", "Media Bitrate", "Media Container", + "Media Duration", "Media Height", "Media Title", "Media Video Codec", - "Media Video Duration", "Media Video FrameRate", "Media Video Profile", "Media Video Resolution", diff --git a/src/components/modules/ExportTools/defs/def-Fields.json b/src/components/modules/ExportTools/defs/def-Fields.json index d74a0a7..0f59778 100644 --- a/src/components/modules/ExportTools/defs/def-Fields.json +++ b/src/components/modules/ExportTools/defs/def-Fields.json @@ -18,6 +18,30 @@ "call": 1, "type": "string" }, + "Audio Stream Album Gain": + { + "key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]", + "call": 2, + "type": "array", + "subtype": "string", + "subkey": "albumGain" + }, + "Audio Stream Album Peak": + { + "key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]", + "call": 2, + "type": "array", + "subtype": "string", + "subkey": "albumPeak" + }, + "Audio Stream Album Range": + { + "key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]", + "call": 2, + "type": "array", + "subtype": "string", + "subkey": "albumRange" + }, "Audio Stream Audio Channel Layout": { "key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]", @@ -98,6 +122,14 @@ "subtype": "string", "subkey": "$.duration" }, + "Audio Stream End Ramp": + { + "key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]", + "call": 2, + "type": "array", + "subtype": "string", + "subkey": "$.endRamp" + }, "Audio Stream Extended Display Title": { "key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]", @@ -106,6 +138,14 @@ "subtype": "string", "subkey": "$.extendedDisplayTitle" }, + "Audio Stream gain": + { + "key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]", + "call": 2, + "type": "array", + "subtype": "string", + "subkey": "$.gain" + }, "Audio Stream Index": { "key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]", @@ -130,6 +170,30 @@ "subtype": "string", "subkey": "languageCode" }, + "Audio Stream loudness": + { + "key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]", + "call": 2, + "type": "array", + "subtype": "string", + "subkey": "loudness" + }, + "Audio Stream LRA": + { + "key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]", + "call": 2, + "type": "array", + "subtype": "string", + "subkey": "lra" + }, + "Audio Stream Peak": + { + "key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]", + "call": 2, + "type": "array", + "subtype": "string", + "subkey": "$.peak" + }, "Audio Stream Profile": { "key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]", @@ -162,6 +226,14 @@ "subtype": "string", "subkey": "selected" }, + "Audio Stream Start Ramp": + { + "key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]", + "call": 2, + "type": "array", + "subtype": "string", + "subkey": "$.startRamp" + }, "Audio Stream Title": { "key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]", @@ -402,6 +474,14 @@ "subtype": "string", "subkey": "$.container" }, + "Media Duration": + { + "key": "$.Media[*]", + "call": 2, + "type": "array", + "subtype": "time", + "subkey": "$.duration" + }, "Media Height": { "key": "$.Media[*]", @@ -434,14 +514,6 @@ "subtype": "string", "subkey": "$.videoCodec" }, - "Media Video Duration": - { - "key": "$.Media[*]", - "call": 2, - "type": "array", - "subtype": "time", - "subkey": "$.duration" - }, "Media Video FrameRate": { "key": "$.Media[*]", @@ -562,6 +634,14 @@ "subtype": "string", "subkey": "$.file" }, + "Part has Thumbnail": + { + "key": "$.Media[*].Part[*]", + "call": 2, + "type": "array", + "subtype": "string", + "subkey": "$.hasThumbnail" + }, "Part Indexed": { "key": "$.Media[*].Part[*]", diff --git a/src/components/modules/ExportTools/defs/def-Track.json b/src/components/modules/ExportTools/defs/def-Track.json index ffaef43..84ac017 100644 --- a/src/components/modules/ExportTools/defs/def-Track.json +++ b/src/components/modules/ExportTools/defs/def-Track.json @@ -21,18 +21,41 @@ "all": [ "Added", "Art url", + "Audio Stream Album Gain", + "Audio Stream Album Peak", + "Audio Stream Album Range", + "Audio Stream Audio Channel Layout", + "Audio Stream Bit Depth", + "Audio Stream Bitrate", + "Audio Stream Channels", + "Audio Stream Codec", + "Audio Stream Display Title", + "Audio Stream End Ramp", + "Audio Stream Extended Display Title", + "Audio Stream gain", + "Audio Stream loudness", + "Audio Stream LRA", + "Audio Stream Peak", + "Audio Stream Required Bandwidths", + "Audio Stream Sampling Rate", + "Audio Stream Selected", + "Audio Stream Start Ramp", "Duration", "Key", "Media Audio Channels", "Media Audio Codec", "Media Bitrate", "Media Container", + "Media Duration", + "Part Accessible", "Part Container", "Part Deep Analysis Version", "Part Duration", + "Part Exists", "Part File", "Part File Combined", "Part File Path", + "Part has Thumbnail", "Part Required Bandwidths", "Part Size", "Part Size as Bytes",