mirror of
https://github.com/WebTools-NG/WebTools-NG
synced 2025-02-17 03:48:25 +00:00
#253 WIP
This commit is contained in:
parent
e8fbfd2c4c
commit
f2cbf9a25b
5 changed files with 696 additions and 96 deletions
1
src/components/modules/ExportTools/defs/.~lock.Ged.json#
Normal file
1
src/components/modules/ExportTools/defs/.~lock.Ged.json#
Normal file
|
@ -0,0 +1 @@
|
||||||
|
,tm,localhost,26.02.2021 02:45,file:///home/tm/.config/libreoffice/4;
|
|
@ -1,23 +1,20 @@
|
||||||
{
|
{
|
||||||
"episode": {
|
"episode": {
|
||||||
"level": {
|
"level": {
|
||||||
"devTommy": [
|
"devTommy": [
|
||||||
"Media ID",
|
"Media ID",
|
||||||
"Writers"
|
"Writers"
|
||||||
|
],
|
||||||
],
|
|
||||||
"Clear Fields": [
|
"Clear Fields": [
|
||||||
|
|
||||||
],
|
],
|
||||||
"Invalid, belongs to shows": [
|
"Invalid, belongs to shows": [
|
||||||
"Studio",
|
"Studio",
|
||||||
"Directors",
|
"Directors",
|
||||||
"Collection"
|
"Collection"
|
||||||
|
|
||||||
],
|
],
|
||||||
"level1": [
|
"level1": [
|
||||||
"Media ID",
|
"Media ID",
|
||||||
"Series Title",
|
"Series Title",
|
||||||
"Sort title",
|
"Sort title",
|
||||||
"Episode Title",
|
"Episode Title",
|
||||||
"Year",
|
"Year",
|
||||||
|
@ -30,7 +27,7 @@
|
||||||
],
|
],
|
||||||
"level2": [
|
"level2": [
|
||||||
"Media ID",
|
"Media ID",
|
||||||
"Series Title",
|
"Series Title",
|
||||||
"Sort title",
|
"Sort title",
|
||||||
"Episode Title",
|
"Episode Title",
|
||||||
"Year",
|
"Year",
|
||||||
|
@ -47,11 +44,11 @@
|
||||||
"Updated",
|
"Updated",
|
||||||
"Poster url",
|
"Poster url",
|
||||||
"Deleted",
|
"Deleted",
|
||||||
"Content Rating"
|
"Content Rating"
|
||||||
],
|
],
|
||||||
"all": [
|
"all": [
|
||||||
"Media ID",
|
"Media ID",
|
||||||
"Series Title",
|
"Series Title",
|
||||||
"Sort title",
|
"Sort title",
|
||||||
"Episode Title",
|
"Episode Title",
|
||||||
"Year",
|
"Year",
|
||||||
|
@ -77,10 +74,589 @@
|
||||||
"Subtitle Stream Codec",
|
"Subtitle Stream Codec",
|
||||||
"Subtitle Stream Forced",
|
"Subtitle Stream Forced",
|
||||||
"Subtitle Stream Index",
|
"Subtitle Stream Index",
|
||||||
"Subtitle Stream Language"
|
"Subtitle Stream Language",
|
||||||
]
|
"Subtitle Stream Language Code",
|
||||||
|
"Subtitle Stream Codec ID",
|
||||||
|
"Subtitle Stream Format",
|
||||||
|
"Subtitle Stream Title",
|
||||||
|
"Subtitle Stream Selected",
|
||||||
|
"Subtitle Stream Required Bandwidths",
|
||||||
|
"Subtitle Header Compression",
|
||||||
|
"Required Bandwidths",
|
||||||
|
"Exists",
|
||||||
|
"Accessible",
|
||||||
|
"Video Stream Required Bandwidths",
|
||||||
|
"Video Stream Scan Type",
|
||||||
|
"Video Stream Ref Frames",
|
||||||
|
"Video Stream Profile",
|
||||||
|
"Video Stream Pixel Format",
|
||||||
|
"Video Stream Level",
|
||||||
|
"Video Stream Width",
|
||||||
|
"Video Stream Height",
|
||||||
|
"Video Stream Has Scaling Matrix",
|
||||||
|
"Video Stream Frame Rate Mode",
|
||||||
|
"Video Stream Frame Rate",
|
||||||
|
"Video Stream Duration",
|
||||||
|
"Video Stream Color Trc",
|
||||||
|
"Video Stream Color Primaries",
|
||||||
|
"Video Stream Color Space",
|
||||||
|
"Video Stream Color Range",
|
||||||
|
"Video Stream Language",
|
||||||
|
"Video Stream Language Code",
|
||||||
|
"Video Stream Bit Depth",
|
||||||
|
"Video Stream Cabac",
|
||||||
|
"Video Stream Chroma Sub Sampling",
|
||||||
|
"Video Stream Codec ID",
|
||||||
|
"Video Stream Codec",
|
||||||
|
"Video Stream Default",
|
||||||
|
"Video Stream Title",
|
||||||
|
"Part Deep Analysis Version",
|
||||||
|
"Part Indexed",
|
||||||
|
"Part Optimized for Streaming",
|
||||||
|
"Part Video Profile",
|
||||||
|
"Part Container",
|
||||||
|
"Part Size as Bytes",
|
||||||
|
"Part Size",
|
||||||
|
"Part Duration",
|
||||||
|
"Part File Path",
|
||||||
|
"Part File",
|
||||||
|
"Part File Combined",
|
||||||
|
"TMDB ID",
|
||||||
|
"TVDB ID",
|
||||||
|
"IMDB Link",
|
||||||
|
"IMDB ID",
|
||||||
|
"MetaData Language",
|
||||||
|
"Audio Stream Profile",
|
||||||
|
"Audio Stream Duration",
|
||||||
|
"Audio Stream Codec ID",
|
||||||
|
"Audio Stream Bitrate Mode",
|
||||||
|
"Audio Stream Index",
|
||||||
|
"Audio Stream Codec",
|
||||||
|
"Audio Stream Default",
|
||||||
|
"Audio Stream Selected",
|
||||||
|
"Audio Stream Bit Depth",
|
||||||
|
"Audio Stream Audio Channel Layout",
|
||||||
|
"Audio Stream Language Code",
|
||||||
|
"Audio Stream Language",
|
||||||
|
"Audio Stream Bitrate"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"fields": {
|
"fields": {
|
||||||
|
"Audio Stream Bitrate":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "bitrate"
|
||||||
|
},
|
||||||
|
"Audio Stream Language":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "language"
|
||||||
|
},
|
||||||
|
"Audio Stream Language Code":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "languageCode"
|
||||||
|
},
|
||||||
|
"Audio Stream Audio Channel Layout":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "audioChannelLayout"
|
||||||
|
},
|
||||||
|
"Audio Stream Bit Depth":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "bitDepth"
|
||||||
|
},
|
||||||
|
"Audio Stream Selected":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "selected"
|
||||||
|
},
|
||||||
|
"Audio Stream Default":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "default"
|
||||||
|
},
|
||||||
|
"Audio Stream Codec":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "$.bitrateMode"
|
||||||
|
},
|
||||||
|
"Audio Stream Index":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "index"
|
||||||
|
},
|
||||||
|
"Audio Stream Bitrate Mode":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "bitDepth"
|
||||||
|
},
|
||||||
|
"Audio Stream Codec ID":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "$.codecID"
|
||||||
|
},
|
||||||
|
"Audio Stream Duration":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "$.duration"
|
||||||
|
},
|
||||||
|
"Audio Stream Profile":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "$.profile"
|
||||||
|
},
|
||||||
|
"TVDB ID":
|
||||||
|
{
|
||||||
|
"key": "$.Guid[*]",
|
||||||
|
"call": 1,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "$.id",
|
||||||
|
"postProcess": true
|
||||||
|
},
|
||||||
|
"MetaData Language":
|
||||||
|
{
|
||||||
|
"key": "$.guid",
|
||||||
|
"call": 2,
|
||||||
|
"type": "string",
|
||||||
|
"postProcess": true
|
||||||
|
},
|
||||||
|
"IMDB ID":
|
||||||
|
{
|
||||||
|
"key": "$.Guid[*]",
|
||||||
|
"call": 1,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "$.id",
|
||||||
|
"postProcess": true
|
||||||
|
},
|
||||||
|
"IMDB Link":
|
||||||
|
{
|
||||||
|
"key": "$.Guid[*]",
|
||||||
|
"call": 1,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "$.id",
|
||||||
|
"postProcess": true
|
||||||
|
},
|
||||||
|
"TMDB ID":
|
||||||
|
{
|
||||||
|
"key": "$.Guid[*]",
|
||||||
|
"call": 1,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "$.id",
|
||||||
|
"postProcess": true
|
||||||
|
},
|
||||||
|
"Part File Combined":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "$.file"
|
||||||
|
},
|
||||||
|
"Part File":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"postProcess": true,
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "$.file"
|
||||||
|
},
|
||||||
|
"Part File Path":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"postProcess": true,
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "$.file"
|
||||||
|
},
|
||||||
|
"Part Duration":
|
||||||
|
{
|
||||||
|
"key": "$..Media[*].Part[?(@.key.startsWith('/library/parts'))]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"postProcess": false,
|
||||||
|
"subtype": "time",
|
||||||
|
"subkey": "$.duration"
|
||||||
|
},
|
||||||
|
"Part Size":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"postProcess": true,
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "$.size"
|
||||||
|
},
|
||||||
|
"Part Size as Bytes":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "$.size"
|
||||||
|
},
|
||||||
|
"Part Container":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "$.container"
|
||||||
|
},
|
||||||
|
"Part Video Profile":
|
||||||
|
{
|
||||||
|
|
||||||
|
},
|
||||||
|
"Part Optimized for Streaming":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "$.optimizedForStreaming"
|
||||||
|
},
|
||||||
|
"Part Indexed":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "$.indexes"
|
||||||
|
},
|
||||||
|
"Part Deep Analysis Version":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "$.deepAnalysisVersion"
|
||||||
|
},
|
||||||
|
"Video Stream Title":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "title"
|
||||||
|
},
|
||||||
|
"Video Stream Default":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "default"
|
||||||
|
},
|
||||||
|
"Video Stream Codec":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "codec"
|
||||||
|
},
|
||||||
|
"Video Stream Codec ID":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "codecID"
|
||||||
|
},
|
||||||
|
"Video Stream Chroma Sub Sampling":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "chromaSubsampling"
|
||||||
|
},
|
||||||
|
"Video Stream Cabac":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "cabac"
|
||||||
|
},
|
||||||
|
"Video Stream Bit Depth":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "bitDepth"
|
||||||
|
},
|
||||||
|
"Video Stream Language Code":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "languageCode"
|
||||||
|
},
|
||||||
|
"Video Stream Language":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "language"
|
||||||
|
},
|
||||||
|
"Video Stream Color Range":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "colorRange"
|
||||||
|
},
|
||||||
|
"Video Stream Color Space":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "colorSpace"
|
||||||
|
},
|
||||||
|
"Video Stream Color Primaries":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "colorPrimaries"
|
||||||
|
},
|
||||||
|
"Video Stream Color Trc":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "colorTrc"
|
||||||
|
},
|
||||||
|
"Video Stream Duration":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "duration"
|
||||||
|
},
|
||||||
|
"Video Stream Frame Rate":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "frameRate"
|
||||||
|
},
|
||||||
|
"Video Stream Frame Rate Mode":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "frameRateMode"
|
||||||
|
},
|
||||||
|
"Video Stream Has Scaling Matrix":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "hasScalingMatrix"
|
||||||
|
},
|
||||||
|
"Video Stream Height":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "height"
|
||||||
|
},
|
||||||
|
"Video Stream Width":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "width"
|
||||||
|
},
|
||||||
|
"Video Stream Level":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "level"
|
||||||
|
},
|
||||||
|
"Video Stream Pixel Format":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "pixelFormat"
|
||||||
|
},
|
||||||
|
"Video Stream Profile":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "profile"
|
||||||
|
},
|
||||||
|
"Video Stream Ref Frames":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "refFrames"
|
||||||
|
},
|
||||||
|
"Video Stream Scan Type":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "scanType"
|
||||||
|
},
|
||||||
|
"Video Stream Required Bandwidths":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "requiredBandwidths"
|
||||||
|
},
|
||||||
|
"Accessible":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "$.accessible"
|
||||||
|
},
|
||||||
|
"Exists":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "$.exists"
|
||||||
|
},
|
||||||
|
"Required Bandwidths":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "$.requiredBandwidths"
|
||||||
|
},
|
||||||
|
"Subtitle Header Compression":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==3)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "headerCompression"
|
||||||
|
},
|
||||||
|
"Subtitle Stream Required Bandwidths":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==3)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "requiredBandwidths"
|
||||||
|
},
|
||||||
|
"Subtitle Stream Selected":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==3)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "selected"
|
||||||
|
},
|
||||||
|
"Subtitle Stream Title":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==3)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "title"
|
||||||
|
},
|
||||||
|
"Subtitle Stream Format":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==3)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "format"
|
||||||
|
},
|
||||||
|
"Subtitle Stream Codec ID":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==3)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "codecID"
|
||||||
|
},
|
||||||
|
"Subtitle Stream Language Code":
|
||||||
|
{
|
||||||
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==3)]",
|
||||||
|
"call": 2,
|
||||||
|
"type": "array",
|
||||||
|
"subtype": "string",
|
||||||
|
"subkey": "$.languageCode"
|
||||||
|
},
|
||||||
"Subtitle Stream Language":
|
"Subtitle Stream Language":
|
||||||
{
|
{
|
||||||
"key": "$.Media[*].Part[*].Stream[?(@.streamType==3)]",
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==3)]",
|
||||||
|
@ -159,62 +735,62 @@
|
||||||
{
|
{
|
||||||
"key": "$.grandparentTitle",
|
"key": "$.grandparentTitle",
|
||||||
"call": 1,
|
"call": 1,
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"Sort title":
|
"Sort title":
|
||||||
{
|
{
|
||||||
"key": "$.titleSort",
|
"key": "$.titleSort",
|
||||||
"call": 1,
|
"call": 1,
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"postProcess": true
|
"postProcess": true
|
||||||
},
|
},
|
||||||
"Episode Title":
|
"Episode Title":
|
||||||
{
|
{
|
||||||
"key": "$.title",
|
"key": "$.title",
|
||||||
"call": 1,
|
"call": 1,
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"Year":
|
"Year":
|
||||||
{
|
{
|
||||||
"key": "$.year",
|
"key": "$.year",
|
||||||
"call": 1,
|
"call": 1,
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"Season":
|
"Season":
|
||||||
{
|
{
|
||||||
"key": "$.parentIndex",
|
"key": "$.parentIndex",
|
||||||
"call": 1,
|
"call": 1,
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"Episode":
|
"Episode":
|
||||||
{
|
{
|
||||||
"key": "$.index",
|
"key": "$.index",
|
||||||
"call": 1,
|
"call": 1,
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"Content Rating":
|
"Content Rating":
|
||||||
{
|
{
|
||||||
"key": "$.contentRating",
|
"key": "$.contentRating",
|
||||||
"call": 1,
|
"call": 1,
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"Summary":
|
"Summary":
|
||||||
{
|
{
|
||||||
"key": "$.summary",
|
"key": "$.summary",
|
||||||
"call": 1,
|
"call": 1,
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"Rating":
|
"Rating":
|
||||||
{
|
{
|
||||||
"key": "$.rating",
|
"key": "$.rating",
|
||||||
"call": 1,
|
"call": 1,
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"User Rating":
|
"User Rating":
|
||||||
{
|
{
|
||||||
"key": "$.userRating",
|
"key": "$.userRating",
|
||||||
"call": 1,
|
"call": 1,
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"Studio":
|
"Studio":
|
||||||
{
|
{
|
||||||
|
@ -228,9 +804,9 @@
|
||||||
"call": 1,
|
"call": 1,
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"Directors":
|
"Directors":
|
||||||
{},
|
{},
|
||||||
"Writers":
|
"Writers":
|
||||||
{
|
{
|
||||||
"key": "$.Writer[*]",
|
"key": "$.Writer[*]",
|
||||||
"call": 1,
|
"call": 1,
|
||||||
|
@ -238,33 +814,33 @@
|
||||||
"subtype": "string",
|
"subtype": "string",
|
||||||
"subkey": "$.tag"
|
"subkey": "$.tag"
|
||||||
},
|
},
|
||||||
"Duration":
|
"Duration":
|
||||||
{
|
{
|
||||||
"key": "$.duration",
|
"key": "$.duration",
|
||||||
"call": 1,
|
"call": 1,
|
||||||
"type": "time"
|
"type": "time"
|
||||||
},
|
},
|
||||||
"Added":
|
"Added":
|
||||||
{
|
{
|
||||||
"key": "$.addedAt",
|
"key": "$.addedAt",
|
||||||
"call": 1,
|
"call": 1,
|
||||||
"type": "datetime"
|
"type": "datetime"
|
||||||
},
|
},
|
||||||
"Updated":
|
"Updated":
|
||||||
{
|
{
|
||||||
"key": "$.updatedAt",
|
"key": "$.updatedAt",
|
||||||
"call": 1,
|
"call": 1,
|
||||||
"type": "datetime"
|
"type": "datetime"
|
||||||
},
|
},
|
||||||
"Poster url":
|
"Poster url":
|
||||||
{
|
{
|
||||||
"key": "$.thumb",
|
"key": "$.thumb",
|
||||||
"call": 1,
|
"call": 1,
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"Collection":
|
"Collection":
|
||||||
{},
|
{},
|
||||||
"Locked Fields":
|
"Locked Fields":
|
||||||
{
|
{
|
||||||
"key": "$.Field[*]",
|
"key": "$.Field[*]",
|
||||||
"call": 2,
|
"call": 2,
|
||||||
|
@ -272,7 +848,7 @@
|
||||||
"subtype": "string",
|
"subtype": "string",
|
||||||
"subkey": "$.name"
|
"subkey": "$.name"
|
||||||
},
|
},
|
||||||
"View Count":
|
"View Count":
|
||||||
{
|
{
|
||||||
"key": "viewCount",
|
"key": "viewCount",
|
||||||
"call": 1,
|
"call": 1,
|
||||||
|
|
|
@ -870,31 +870,31 @@
|
||||||
"call": 2,
|
"call": 2,
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"subtype": "string",
|
"subtype": "string",
|
||||||
"subkey": "level"
|
"subkey": "level"
|
||||||
},
|
},
|
||||||
"Audio Stream Selected":
|
"Audio Stream Selected":
|
||||||
{
|
{
|
||||||
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
|
||||||
"call": 2,
|
"call": 2,
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"subtype": "string",
|
"subtype": "string",
|
||||||
"subkey": "selected"
|
"subkey": "selected"
|
||||||
},
|
},
|
||||||
"Audio Stream Default":
|
"Audio Stream Default":
|
||||||
{
|
{
|
||||||
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
|
||||||
"call": 2,
|
"call": 2,
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"subtype": "string",
|
"subtype": "string",
|
||||||
"subkey": "default"
|
"subkey": "default"
|
||||||
},
|
},
|
||||||
"Audio Stream Codec":
|
"Audio Stream Codec":
|
||||||
{
|
{
|
||||||
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
|
||||||
"call": 2,
|
"call": 2,
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"subtype": "string",
|
"subtype": "string",
|
||||||
"subkey": "codec"
|
"subkey": "codec"
|
||||||
},
|
},
|
||||||
"Audio Stream Index":
|
"Audio Stream Index":
|
||||||
{
|
{
|
||||||
|
@ -902,7 +902,7 @@
|
||||||
"call": 2,
|
"call": 2,
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"subtype": "string",
|
"subtype": "string",
|
||||||
"subkey": "index"
|
"subkey": "index"
|
||||||
},
|
},
|
||||||
"Audio Stream Channels":
|
"Audio Stream Channels":
|
||||||
{
|
{
|
||||||
|
@ -910,7 +910,7 @@
|
||||||
"call": 2,
|
"call": 2,
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"subtype": "string",
|
"subtype": "string",
|
||||||
"subkey": "channels"
|
"subkey": "channels"
|
||||||
},
|
},
|
||||||
"Audio Stream Bitrate":
|
"Audio Stream Bitrate":
|
||||||
{
|
{
|
||||||
|
@ -918,7 +918,7 @@
|
||||||
"call": 2,
|
"call": 2,
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"subtype": "string",
|
"subtype": "string",
|
||||||
"subkey": "bitrate"
|
"subkey": "bitrate"
|
||||||
},
|
},
|
||||||
"Audio Stream Language":
|
"Audio Stream Language":
|
||||||
{
|
{
|
||||||
|
@ -926,7 +926,7 @@
|
||||||
"call": 2,
|
"call": 2,
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"subtype": "string",
|
"subtype": "string",
|
||||||
"subkey": "language"
|
"subkey": "language"
|
||||||
},
|
},
|
||||||
"Audio Stream Language Code":
|
"Audio Stream Language Code":
|
||||||
{
|
{
|
||||||
|
@ -934,7 +934,7 @@
|
||||||
"call": 2,
|
"call": 2,
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"subtype": "string",
|
"subtype": "string",
|
||||||
"subkey": "languageCode"
|
"subkey": "languageCode"
|
||||||
},
|
},
|
||||||
"Audio Stream Audio Channel Layout":
|
"Audio Stream Audio Channel Layout":
|
||||||
{
|
{
|
||||||
|
@ -942,7 +942,7 @@
|
||||||
"call": 2,
|
"call": 2,
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"subtype": "string",
|
"subtype": "string",
|
||||||
"subkey": "audioChannelLayout"
|
"subkey": "audioChannelLayout"
|
||||||
},
|
},
|
||||||
"Audio Stream Bit Depth":
|
"Audio Stream Bit Depth":
|
||||||
{
|
{
|
||||||
|
@ -950,15 +950,15 @@
|
||||||
"call": 2,
|
"call": 2,
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"subtype": "string",
|
"subtype": "string",
|
||||||
"subkey": "bitDepth"
|
"subkey": "bitDepth"
|
||||||
},
|
},
|
||||||
"Audio Stream Bitrate Mode":
|
"Audio Stream Bitrate Mode":
|
||||||
{
|
{
|
||||||
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
|
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
|
||||||
"call": 2,
|
"call": 2,
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"subtype": "string",
|
"subtype": "string",
|
||||||
"subkey": "$.bitrateMode"
|
"subkey": "$.bitrateMode"
|
||||||
},
|
},
|
||||||
"Audio Stream Codec ID":
|
"Audio Stream Codec ID":
|
||||||
{
|
{
|
||||||
|
@ -966,7 +966,7 @@
|
||||||
"call": 2,
|
"call": 2,
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"subtype": "string",
|
"subtype": "string",
|
||||||
"subkey": "$.codecID"
|
"subkey": "$.codecID"
|
||||||
},
|
},
|
||||||
"Audio Stream Duration":
|
"Audio Stream Duration":
|
||||||
{
|
{
|
||||||
|
@ -974,7 +974,7 @@
|
||||||
"call": 2,
|
"call": 2,
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"subtype": "string",
|
"subtype": "string",
|
||||||
"subkey": "$.duration"
|
"subkey": "$.duration"
|
||||||
},
|
},
|
||||||
"Audio Stream Profile":
|
"Audio Stream Profile":
|
||||||
{
|
{
|
||||||
|
@ -982,7 +982,7 @@
|
||||||
"call": 2,
|
"call": 2,
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"subtype": "string",
|
"subtype": "string",
|
||||||
"subkey": "$.profile"
|
"subkey": "$.profile"
|
||||||
},
|
},
|
||||||
"Audio Stream Sampling Rate":
|
"Audio Stream Sampling Rate":
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
"Media ID",
|
|
||||||
"Series Title",
|
|
||||||
"Sort title",
|
|
||||||
"Episode Title",
|
|
||||||
"Year",
|
|
||||||
"Season",
|
|
||||||
"Episode",
|
|
||||||
"Content Rating",
|
|
||||||
"Summary",
|
|
||||||
"Rating",
|
|
||||||
"User Rating",
|
|
||||||
"Originally Aired",
|
|
||||||
"Writers",
|
|
||||||
"Duration",
|
|
||||||
"Added",
|
|
||||||
"Updated",
|
|
||||||
"Poster url",
|
|
||||||
"Deleted",
|
|
||||||
"Content Rating",
|
|
||||||
"Audio Stream Channels",
|
|
||||||
"Video Stream Index",
|
|
||||||
"Video Stream Bitrate",
|
|
||||||
"Audio Stream Sampling Rate",
|
|
||||||
"Audio Stream Required Bandwidths"
|
|
Can't render this file because it has a wrong number of fields in line 24.
|
|
@ -517,19 +517,30 @@ const excel2 = new class Excel {
|
||||||
async postProcess( {name, val, title=""} ){
|
async postProcess( {name, val, title=""} ){
|
||||||
const valArray = val.split(wtconfig.get('ET.ArraySep', ' - '));
|
const valArray = val.split(wtconfig.get('ET.ArraySep', ' - '));
|
||||||
let retArray = [];
|
let retArray = [];
|
||||||
let x, retVal, start, strStart, end, result;
|
let x, retVal, start, strStart, end, result;
|
||||||
try {
|
try {
|
||||||
switch ( String(name) ){
|
switch ( String(name) ){
|
||||||
case "MetaDB Link":
|
case "MetaDB Link":
|
||||||
for (x=0; x<valArray.length; x++) {
|
// ["\"com.plexapp.agents.imdb://tt1291580?lang=en\""]
|
||||||
retArray.push(path.basename(valArray[x].split("?")[0]))
|
// ["\"com.plexapp.agents.thetvdb://73141/17/5?lang=en\""]
|
||||||
|
console.log('Ged MetaDB Link', JSON.stringify(valArray))
|
||||||
|
for (x=0; x<valArray.length; x++) {
|
||||||
|
//if ( valArray[x].toString().startsWith('com.plexapp.agents.thetvdb'))
|
||||||
|
if (valArray[x].includes("thetvdb"))
|
||||||
|
{
|
||||||
|
retArray.push(wtconfig.get('ET.NotAvail'))
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
retArray.push(path.basename(valArray[x].split("?")[0]))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
retVal = retArray.join(wtconfig.get('ET.ArraySep', ' - '))
|
retVal = retArray.join(wtconfig.get('ET.ArraySep', ' - '))
|
||||||
break;
|
break;
|
||||||
case "MetaData Language":
|
case "MetaData Language":
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
for (x=0; x<valArray.length; x++) {
|
for (x=0; x<valArray.length; x++) {
|
||||||
retArray.push(path.basename(valArray[x].split("=")[1]))
|
retArray.push(path.basename(valArray[x].split("=")[1]))
|
||||||
}
|
}
|
||||||
retVal = retArray.join(wtconfig.get('ET.ArraySep', ' - '))
|
retVal = retArray.join(wtconfig.get('ET.ArraySep', ' - '))
|
||||||
|
@ -540,14 +551,14 @@ const excel2 = new class Excel {
|
||||||
retVal = wtconfig.get('ET.NotAvail');
|
retVal = wtconfig.get('ET.NotAvail');
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "Part File":
|
case "Part File":
|
||||||
for (x=0; x<valArray.length; x++) {
|
for (x=0; x<valArray.length; x++) {
|
||||||
retArray.push(path.basename(valArray[x]))
|
retArray.push(path.basename(valArray[x]))
|
||||||
}
|
}
|
||||||
retVal = retArray.join(wtconfig.get('ET.ArraySep', ' - '))
|
retVal = retArray.join(wtconfig.get('ET.ArraySep', ' - '))
|
||||||
break;
|
break;
|
||||||
case "Part File Path":
|
case "Part File Path":
|
||||||
for (x=0; x<valArray.length; x++) {
|
for (x=0; x<valArray.length; x++) {
|
||||||
retArray.push(path.dirname(valArray[x]));
|
retArray.push(path.dirname(valArray[x]));
|
||||||
}
|
}
|
||||||
retVal = retArray.join(wtconfig.get('ET.ArraySep', ' - '));
|
retVal = retArray.join(wtconfig.get('ET.ArraySep', ' - '));
|
||||||
|
@ -608,20 +619,25 @@ const excel2 = new class Excel {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "IMDB ID":
|
case "IMDB ID":
|
||||||
if (val == wtconfig.get('ET.NotAvail'))
|
if (val == wtconfig.get('ET.NotAvail'))
|
||||||
{
|
{
|
||||||
retVal = val;
|
retVal = val;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
start = val.indexOf("imdb://");
|
start = val.indexOf("imdb://");
|
||||||
|
if (start == -1)
|
||||||
|
{
|
||||||
|
retVal = wtconfig.get('ET.NotAvail');
|
||||||
|
break;
|
||||||
|
}
|
||||||
strStart = val.substring(start);
|
strStart = val.substring(start);
|
||||||
end = strStart.indexOf("-");
|
end = strStart.indexOf("-");
|
||||||
result = ''
|
result = ''
|
||||||
if (end == -1)
|
if (end == -1)
|
||||||
{ result = strStart.substring(7) }
|
{ result = strStart.substring(7) }
|
||||||
else
|
else
|
||||||
{ result = strStart.substring(7, end) }
|
{ result = strStart.substring(7, end) }
|
||||||
retVal = result;
|
retVal = result;
|
||||||
break;
|
break;
|
||||||
case "IMDB Link":
|
case "IMDB Link":
|
||||||
|
@ -629,25 +645,56 @@ const excel2 = new class Excel {
|
||||||
{
|
{
|
||||||
retVal = val;
|
retVal = val;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
start = val.indexOf("imdb://");
|
start = val.indexOf("imdb://");
|
||||||
|
if (start == -1)
|
||||||
|
{
|
||||||
|
retVal = wtconfig.get('ET.NotAvail');
|
||||||
|
break;
|
||||||
|
}
|
||||||
strStart = val.substring(start);
|
strStart = val.substring(start);
|
||||||
end = strStart.indexOf("-");
|
end = strStart.indexOf("-");
|
||||||
result = ''
|
result = ''
|
||||||
if (end == -1)
|
if (end == -1)
|
||||||
{ result = strStart.substring(7) }
|
{ result = strStart.substring(7) }
|
||||||
else
|
else
|
||||||
{ result = strStart.substring(7, end) }
|
{ result = strStart.substring(7, end) }
|
||||||
result = 'https://www.imdb.com/title/' + result;
|
result = 'https://www.imdb.com/title/' + result;
|
||||||
retVal = result;
|
retVal = result;
|
||||||
break;
|
break;
|
||||||
case "TMDB ID":
|
case "TVDB ID":
|
||||||
|
if (val == wtconfig.get('ET.NotAvail'))
|
||||||
|
{
|
||||||
|
retVal = val;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
start = val.indexOf("tvdb://");
|
||||||
|
if (start == -1)
|
||||||
|
{
|
||||||
|
retVal = wtconfig.get('ET.NotAvail');
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
strStart = val.substring(start);
|
||||||
|
end = strStart.indexOf("-");
|
||||||
|
result = ''
|
||||||
|
if (end == -1)
|
||||||
|
{ result = strStart.substring(7) }
|
||||||
|
else
|
||||||
|
{ result = strStart.substring(7, end) }
|
||||||
|
retVal = result;
|
||||||
|
break;
|
||||||
|
case "TMDB ID":
|
||||||
if (val == wtconfig.get('ET.NotAvail'))
|
if (val == wtconfig.get('ET.NotAvail'))
|
||||||
{
|
{
|
||||||
retVal = val;
|
retVal = val;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
start = val.indexOf("tmdb://");
|
start = val.indexOf("tmdb://");
|
||||||
|
if (start == -1)
|
||||||
|
{
|
||||||
|
retVal = wtconfig.get('ET.NotAvail');
|
||||||
|
break;
|
||||||
|
}
|
||||||
strStart = val.substring(start);
|
strStart = val.substring(start);
|
||||||
end = strStart.indexOf("-");
|
end = strStart.indexOf("-");
|
||||||
result = ''
|
result = ''
|
||||||
|
|
Loading…
Add table
Reference in a new issue