Merge pull request #642 from WebTools-NG/ukdtom/issue621

[RFE] ET Audio Display title shorten
This commit is contained in:
Tommy Mikkelsen 2022-12-01 14:48:48 +01:00 committed by GitHub
commit a94349a691
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 0 deletions

View file

@ -14,6 +14,7 @@
* [#619 Allow to paste token into login screen](https://github.com/WebTools-NG/WebTools-NG/issues/619) (Enhancement)
* [#507 Download Module (Movies)](https://github.com/WebTools-NG/WebTools-NG/issues/507) (Enhancement)
* [#625 Media Info HDR types in Export](https://github.com/WebTools-NG/WebTools-NG/issues/625) (Enhancement)
* [#621 ET Audio Display title shorten](https://github.com/WebTools-NG/WebTools-NG/issues/621) (Enhancement)
## V1.1.2 ( 20220925 )

View file

@ -47,6 +47,7 @@
"Audio Stream Channels",
"Audio Stream Codec ID",
"Audio Stream Codec",
"Audio Stream Codec (Human)",
"Audio Stream Default",
"Audio Stream Display Title",
"Audio Stream Duration",

View file

@ -145,6 +145,14 @@
"subtype": "string",
"subkey": "codec"
},
"Audio Stream Codec (Human)": {
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.displayTitle",
"postProcess": true
},
"Audio Stream Codec ID":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",

View file

@ -52,8 +52,10 @@
"Audio Stream Bitrate Mode",
"Audio Stream Channels",
"Audio Stream Codec",
"Audio Stream Codec (Human)",
"Audio Stream Codec ID",
"Audio Stream Default",
"Audio Stream Display Title",
"Audio Stream Duration",
"Audio Stream Index",
"Audio Stream Language",

View file

@ -552,6 +552,9 @@ const etHelper = new class ETHELPER {
case "Audience Rating":
retVal = val.substring(0, 3);
break;
case "Audio Stream Codec (Human)":
retVal = val.match('\\((.*?)\\)')[1];
break;
case "Episode Count (Cloud)":
retVal = wtconfig.get('ET.NotAvail');
if ( this.Settings.showInfo['Episode Count (Cloud)']){