#94 Moved defs to separate files

This commit is contained in:
UKDTOM 2020-09-19 21:57:42 +02:00
parent aa17d5e998
commit 0f249bd756
9 changed files with 351 additions and 1264 deletions

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1,239 @@
{
"episode": {
"level": {
"devtommy": [
"Media ID"
,"Studio"
,"Originally Aired"
,"Directors"
,"Writers"
,"Duration"
,"Added"
,"Updated"
,"Thumbs uri"
,"Collection"
,"Locked Fields"
,"View Count"
],
"Clear Fields": [
"Media ID"
,"******** LEVEL 3 *********"
,"Media Video Resolution"
,"Media Video Duration"
,"Media Video Bitrate"
,"Media Video Width"
,"Media Video Height"
,"Media Video Aspect Ratio"
,"Media Video Audio Channels"
,"Media Video Audio Codec"
,"Media Video Video Codec"
,"Media Video Container"
,"Media Video FrameRate"
,"Media Video Profile"
,"Media Video Title"
,"****** Level 4 *******"
,"Intro Start"
,"Intro Stop"
,"MetaDb link (Supports TheTVDb, TheMovieDB, AniDB)"
,"Part File Combined"
,"Part File"
,"Part File Path"
,"Part Duration"
,"Part Size"
,"Part Size as Bytes"
,"Part Container"
,"Part Video Profile"
,"Part Optimized for Streaming"
,"Part Indexed (has a bif file been generated)"
,"Extras"
,"Accessible"
,"Exists"
,"Part Deep Analysis Version"
,"Required Bandwidths"
,"****** Level 5 *********"
,"Video Stream Title"
,"Video Stream Default"
,"Video Stream Codec"
,"Video Stream Index"
,"Video Stream Bitrate"
,"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 Color Range"
,"Video Stream Color Space"
,"Video Stream Color Primaries"
,"Video Stream Color Trc"
,"Video Stream Duration"
,"Video Stream Frame Rate"
,"Video Stream Frame Rate Mode"
,"Video Stream Has Scaling Matrix"
,"Video Stream Height"
,"Video Stream Width"
,"Video Stream Level"
,"Video Stream Pixel Format"
,"Video Stream Profile"
,"Video Stream Ref Frames"
,"Video Stream Scan Type"
,"Video Stream Required Bandwidths"
,"******** Level 6 **********"
,"Audio Stream Title"
,"Audio Stream Display Title"
,"Audio Stream Selected"
,"Audio Stream Default"
,"Audio Stream Codec"
,"Audio Stream Index"
,"Audio Stream Channels"
,"Audio Stream Bitrate"
,"Audio Stream Language"
,"Audio Stream Language Code"
,"Audio Stream Audio Channel Layout"
,"Audio Stream Bit Depth"
,"Audio Stream Bitrate Mode"
,"Audio Stream Codec ID"
,"Audio Stream Duration"
,"Audio Stream Profile"
,"Audio Stream Sampling Rate"
,"Audio Stream Required Bandwidths"
,"Subtitle Stream Codec"
,"Subtitle Stream Forced"
,"Subtitle Stream Index"
,"Subtitle Stream Language"
,"Subtitle Stream Language Code"
,"Subtitle Stream Codec ID"
,"Subtitle Stream Format"
,"Subtitle Stream Title"
,"Subtitle Stream Selected"
,"Subtitle Stream Required Bandwidths"
,"******* Level 666 *******"
,"PMS Export Path (Where subtitles etc are stored)"
],
"Invalid, belongs to shows": [
"Studio",
"Originally Aired",
"Directors"
],
"level1": [
"Media ID",
"Series Title",
"Episode Sort Title",
"Episode Title",
"Year",
"Season",
"Episode",
"Content Rating",
"Summary",
"Rating",
"User Rating"
],
"level2": [
"Writers",
"Duration",
"Added",
"Updated",
"Poster url",
"Collection",
"Locked Fields",
"View Count"
]
},
"fields": {
"Media ID":
{
"key": "$.ratingKey",
"call": 1,
"type": "string"
},
"Series Title":
{
"key": "$.grandparentTitle",
"call": 1,
"type": "string"
},
"Episode Sort Title":
{
"key": "$.titleSort",
"call": 1,
"type": "string"
},
"Episode Title":
{
"key": "$.title",
"call": 1,
"type": "string"
},
"Year":
{
"key": "$.year",
"call": 1,
"type": "string"
},
"Season":
{
"key": "$.parentIndex",
"call": 1,
"type": "string"
},
"Episode":
{
"key": "$.index",
"call": 1,
"type": "string"
},
"Content Rating":
{
"key": "$.contentRating",
"call": 1,
"type": "string"
},
"Summary":
{
"key": "$.summary",
"call": 1,
"type": "string"
},
"Rating":
{
"key": "$.rating",
"call": 1,
"type": "string"
},
"User Rating":
{
"key": "$.userRating",
"call": 1,
"type": "string"
},
"Studio":
{
"key": "$.studio",
"call": 1,
"type": "string"
},
"Originally Aired":
{},
"Directors":
{},
"Writers":
{},
"Duration":
{},
"Added":
{},
"Updated":
{},
"Poster url":
{},
"Collection":
{},
"Locked Fields":
{},
"View Count":
{}
}
}
}

View file

@ -0,0 +1,64 @@
{
"movie": {
"levels": {
"Level 1": "level1",
"Level 2": "level2",
"Level 3": "level3",
"Level 4": "level4",
"Level 5": "level5",
"Level 6": "level6",
"dev tommy": "devTommy"
},
"LevelCount": {
"Level 1": 1,
"Level 2": 1,
"Level 3": 2,
"Level 4": 2,
"Level 5": 2,
"Level 6": 2,
"devTommy": 2
}
},
"episode": {
"levels": {
"Level 1": "level1",
"Level 2": "level2",
"devTommy": "devtommy"
},
"LevelCount": {
"Level 1": 1,
"Level 2": 1,
"Level 3": 1,
"Level 4": 2,
"Level 5": 2,
"Level 6": 2,
"devTommy": 1
}
},
"show": {
"levels": {
"Level 1": "level1",
"Tommy": "tommy"
},
"LevelCount": {
"Level 1": 1,
"Level 2": 1,
"Level 3": 1,
"Level 4": 2,
"Level 5": 2,
"Level 6": 2,
"Tommy": 1
}
},
"artist": {
"levels": {
"No Level Yet": "level1"
}
},
"photo": {
"levels": {
"No Level Yet": "level1"
}
}
}

View file

@ -1,24 +1,5 @@
{
"movie": {
"levels": {
"Level 1": "level1",
"Level 2": "level2",
"Level 3": "level3",
"Level 4": "level4",
"Level 5": "level5",
"Level 6": "level6",
"dev tommy": "devTommy"
},
"LevelCount": {
"Level 1": 1,
"Level 2": 1,
"Level 3": 2,
"Level 4": 2,
"Level 5": 2,
"Level 6": 2,
"devTommy": 2
},
"level": {
"devTommy": [
"Media ID", "Title",
@ -1158,284 +1139,5 @@
}
}
},
"episode": {
"levels": {
"Level 1": "level1",
"Level 2": "level2",
"Tommy": "tommy"
},
"LevelCount": {
"Level 1": 1,
"Level 2": 1,
"Level 3": 1,
"Level 4": 2,
"Level 5": 2,
"Level 6": 2,
"Tommy": 1
},
"level": {
"tommy": [
"Media ID"
],
"verified": [
"Series Title",
"Episode Sort Title",
"Episode Title",
"Year",
"Season",
"Episode",
"Content Rating",
"Summary",
"Rating",
"User Rating"
],
"Clear Fields": [
"Writers",
"Duration",
"Added",
"Updated",
"Poster url",
"Collection",
"Locked Fields",
"View Count"
],
"Invalid, belongs to shows": [
"Studio",
"Originally Aired",
"Directors"
],
"level1": [
"Media ID",
"Series Title",
"Episode Sort Title",
"Episode Title",
"Year",
"Season",
"Episode",
"Content Rating",
"Summary",
"Rating",
"User Rating"
],
"level2": [
"Writers",
"Duration",
"Added",
"Updated",
"Poster url",
"Collection",
"Locked Fields",
"View Count"
]
},
"fields": {
"Media ID":
{
"key": "$.ratingKey",
"call": 1,
"type": "string"
},
"Series Title":
{
"key": "$.grandparentTitle",
"call": 1,
"type": "string"
},
"Episode Sort Title":
{
"key": "$.titleSort",
"call": 1,
"type": "string"
},
"Episode Title":
{
"key": "$.title",
"call": 1,
"type": "string"
},
"Year":
{
"key": "$.year",
"call": 1,
"type": "string"
},
"Season":
{
"key": "$.parentIndex",
"call": 1,
"type": "string"
},
"Episode":
{
"key": "$.index",
"call": 1,
"type": "string"
},
"Content Rating":
{
"key": "$.contentRating",
"call": 1,
"type": "string"
},
"Summary":
{
"key": "$.summary",
"call": 1,
"type": "string"
},
"Rating":
{
"key": "$.rating",
"call": 1,
"type": "string"
},
"User Rating":
{
"key": "$.userRating",
"call": 1,
"type": "string"
},
"Studio":
{
"key": "$.studio",
"call": 1,
"type": "string"
},
"Originally Aired":
{},
"Directors":
{},
"Writers":
{},
"Duration":
{},
"Added":
{},
"Updated":
{},
"Poster url":
{},
"Collection":
{},
"Locked Fields":
{},
"View Count":
{}
}
},
"show": {
"levels": {
"Level 1": "level1",
"Tommy": "tommy"
},
"LevelCount": {
"Level 1": 1,
"Level 2": 1,
"Level 3": 1,
"Level 4": 2,
"Level 5": 2,
"Level 6": 2,
"Tommy": 1
},
"level": {
"tommy": [
"Title",
"Part Duration"
]
},
"fields": {
"Media ID":
{
"key": "$.ratingKey",
"call": 1,
"type": "string"
},
"Series Title":
{
"key": "$.grandparentTitle",
"call": 1,
"type": "string"
},
"Episode Sort Title":
{
"key": "$.titleSort",
"call": 1,
"type": "string"
},
"Episode Title":
{
"key": "$.title",
"call": 1,
"type": "string"
},
"Year":
{
"key": "$.year",
"call": 1,
"type": "string"
},
"Season":
{
"key": "$.parentIndex",
"call": 1,
"type": "string"
},
"Episode":
{
"key": "$.index",
"call": 1,
"type": "string"
},
"Content Rating":
{
"key": "$.contentRating",
"call": 1,
"type": "string"
},
"Summary":
{
"key": "$.summary",
"call": 1,
"type": "string"
},
"Rating":
{
"key": "$.rating",
"call": 1,
"type": "string"
},
"User Rating":
{
"key": "$.userRating",
"call": 1,
"type": "string"
}
}
},
"artist": {
"levels": {
"No Level Yet": "level1"
}
},
"photo": {
"levels": {
"No Level Yet": "level1"
}
},
"other": {
"levels": {
"No Level Yet": "level1"
}
}
}
}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1 @@
{}

View file

@ -1,958 +0,0 @@
{
"movie": {
"fields": {
"Media ID":
{
"key": "$.ratingKey",
"call": 1,
"type": "string"
},
"Title":
{
"key": "$.title",
"call": 1,
"type": "string"
},
"Sort title":
{
"key": "$.titleSort",
"call": 1,
"type": "string"
},
"Studio":
{
"key": "$.studio",
"call": 1,
"type": "string"
},
"Content Rating":
{
"key": "$.contentRating",
"call": 1,
"type": "string"
},
"Year":
{
"key": "$.year",
"call": 1,
"type": "string"
},
"Rating":
{
"key": "$.rating",
"call": 1,
"type": "string"
},
"Summary":
{
"key": "$.summary",
"call": 1,
"type": "string"
},
"Genre":
{
"key": "$.Genre[*]",
"call": 1,
"type": "array",
"subtype": "string",
"subkey": "$.tag"
},
"View Count":
{
"key": "viewCount",
"call": 1,
"type": "string"
},
"Last Viewed at":
{
"key": "$..lastViewedAt",
"call": 1,
"type": "datetime"
},
"Tagline":
{
"key": "tagline",
"call": 1,
"type": "string"
},
"Release Date":
{
"key": "$..originallyAvailableAt",
"call": 1,
"type": "string"
},
"Writers":
{
"key": "$.Writer[*]",
"call": 1,
"type": "array",
"subtype": "string",
"subkey": "$.tag"
},
"Country":
{
"key": "$.Country[*]",
"call": 1,
"type": "array",
"subtype": "string",
"subkey": "$.tag"
},
"Duration":
{
"key": "$.duration",
"call": 1,
"type": "time"
},
"Directors":
{
"key": "$.Director[*]",
"call": 1,
"type": "array",
"subtype": "string",
"subkey": "$.tag"
},
"Roles":
{
"key": "$.Role[*]",
"call": 1,
"type": "array",
"subtype": "string",
"subkey": "$.tag"
},
"Audience Rating":
{
"key": "audienceRating",
"call": 1,
"type": "string"
},
"User Rating":
{
"key": "userRating",
"call": 1,
"type": "string"
},
"Labels":
{
"key": "$.Label[*]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.tag"
},
"Locked Fields":
{
"key": "$.Field[*]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.name"
},
"Extras":
{
"key": "$.Extras.size",
"call": 2,
"type": "int"
},
"Extras-behindthescenes":
{
"key": "$..Extras.Metadata[?(@.subtype=='behindTheScenes')].ratingKey",
"call": 2,
"type": "array-count"
},
"Extras-deleted":
{
"key": "$..Extras.Metadata[?(@.subtype=='deleted')].ratingKey",
"call": 2,
"type": "array-count"
},
"Extras-featurette":
{
"key": "$..Extras.Metadata[?(@.subtype=='featurette')].ratingKey",
"call": 2,
"type": "array-count"
},
"Extras-interview":
{
"key": "$..Extras.Metadata[?(@.subtype=='interview')].ratingKey",
"call": 2,
"type": "array-count"
},
"Extras-scene":
{
"key": "$..Extras.Metadata[?(@.subtype=='scene')].ratingKey",
"call": 2,
"type": "array-count"
},
"Extras-short":
{
"key": "$..Extras.Metadata[?(@.subtype=='short')].ratingKey",
"call": 2,
"type": "array-count"
},
"Extras-trailer":
{
"key": "$..Extras.Metadata[?(@.subtype=='trailer')].ratingKey",
"call": 2,
"type": "array-count"
},
"Collections":
{
"key": "$.Collection[*]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.tag"
},
"Original Title":
{
"key": "$..originalTitle",
"call": 2,
"type": "string",
"postProcess": true
},
"Added":
{
"key": "$.addedAt",
"call": 1,
"type": "datetime"
},
"Updated":
{
"key": "$.updatedAt",
"call": 1,
"type": "datetime"
},
"Audio Languages":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.languageCode"
},
"Audio Title":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.title"
},
"Subtitle Languages":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==3)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.languageCode"
},
"Subtitle Title":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==3)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.title"
},
"Subtitle Codec":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==3)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.codec"
},
"Subtitle Forced":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==3)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.forced"
},
"Accessible":
{
"key": "$.Media[*].Part[*]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.accessible"
},
"Exists":
{
"key": "$.Media[*].Part[*]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.exists"
},
"MetaDB Link":
{
"key": "$.guid",
"call": 2,
"type": "string",
"postProcess": true
},
"MetaData Language":
{
"key": "$.guid",
"call": 2,
"type": "string",
"postProcess": true
},
"Poster url":
{
"key": "$.thumb",
"call": 2,
"type": "string"
},
"Art url":
{
"key": "$.art",
"call": 2,
"type": "string"
},
"Chapter Source":
{
"key": "$.chapterSource",
"call": 2,
"type": "string"
},
"Chapter Title":
{
"key": "$.Chapter[*]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.tag"
},
"Chapter Count":
{
"key": "$..Chapter[*]",
"call": 2,
"type": "array-count"
},
"Video Resolution":
{
"key": "$.Media[*]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.videoResolution"
},
"Bitrate":
{
"key": "$.Media[*]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.bitrate"
},
"Width":
{
"key": "$.Media[*]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.width"
},
"Height":
{
"key": "$.Media[*]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.height"
},
"Aspect Ratio":
{
"key": "$.Media[*]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.aspectRatio"
},
"Audio Channels":
{
"key": "$.Media[*]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.audioChannels"
},
"Audio Codec":
{
"key": "$.Media[*]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.audioCodec"
},
"Video Codec":
{
"key": "$.Media[*]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.videoCodec"
},
"Container":
{
"key": "$.Media[*]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.container"
},
"Video FrameRate":
{
"key": "$.Media[*]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.videoFrameRate"
},
"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 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 Indexed":
{
"key": "$.Media[*].Part[*]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.indexes"
},
"Part Duration":
{
"key": "$..Media[*].Part[?(@.key.startsWith('/library/parts'))]",
"call": 2,
"type": "array",
"postProcess": false,
"subtype": "time",
"subkey": "$.duration"
},
"Part Container":
{
"key": "$.Media[*].Part[*]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.container"
},
"Part Optimized for Streaming":
{
"key": "$.Media[*].Part[*]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.optimizedForStreaming"
},
"Part Deep Analysis Version":
{
"key": "$.Media[*].Part[*]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.deepAnalysisVersion"
},
"Required Bandwidths":
{
"key": "$.Media[*].Part[*]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.requiredBandwidths"
},
"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 Index":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "index"
},
"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 Stream Identifier":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "streamIdentifier"
},
"Video Stream Width":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "width"
},
"Video Stream Pixel Aspect Ratio":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "pixelAspectRatio"
},
"Video Stream Height":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "height"
},
"Video Stream Has Scaling Matrix":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "hasScalingMatrix"
},
"Video Stream Frame Rate Mode":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "frameRateMode"
},
"Video Stream Frame Rate":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "frameRate"
},
"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 Color Primaries":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "colorPrimaries"
},
"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 Trc":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "colorTrc"
},
"Video Stream Cabac":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "cabac"
},
"Video Stream Anamorphic":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "anamorphic"
},
"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 Bitrate":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "bitrate"
},
"Video Stream Bit Depth":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "bitDepth"
},
"Video Stream Duration":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "duration"
},
"Video Stream Required Bandwidths":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "requiredBandwidths"
},
"Video Stream Level":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==1)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "level"
},
"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": "codec"
},
"Audio Stream Index":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "index"
},
"Audio Stream Channels":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "channels"
},
"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 Bitrate Mode":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.bitrateMode"
},
"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"
},
"Audio Stream Sampling Rate":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.samplingRate"
},
"Audio Stream Required Bandwidths":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==2)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.requiredBandwidths"
},
"Subtitle Stream Codec":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==3)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.profile"
},
"Subtitle Stream Language":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==3)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.language"
},
"Subtitle Stream Language Code":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==3)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.languageCode"
},
"Subtitle Stream Codec ID":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==3)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "codecID"
},
"Subtitle Stream Format":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==3)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "format"
},
"Subtitle Stream Title":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==3)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "title"
},
"Subtitle Stream Selected":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==3)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "selected"
},
"Subtitle Stream Required Bandwidths":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==3)]",
"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 Default":
{
"key": "$.Media[*].Part[*].Stream[?(@.streamType==3)]",
"call": 2,
"type": "array",
"subtype": "string",
"subkey": "$.default"
}
}
}
}

View file

@ -1,5 +1,12 @@
/* eslint-disable no-unreachable */
var def = JSON.parse(JSON.stringify(require('./definitions.json')));
//var def = JSON.parse(JSON.stringify(require('./definitions.json')));
var def;
var defLevels = JSON.parse(JSON.stringify(require('./def-Levels.json')));
const log = require('electron-log');
console.log = log.log;
const defpostURI = '?checkFiles=1&includeRelated=0&includeExtras=1&includeBandwidths=1&includeChapters=1'
@ -38,6 +45,8 @@ const et = new class ET {
// Find LibType steps
const step = wtconfig.get("PMS.ContainerSize." + libType)
log.debug(`Get Step size as: ${step}`)
// Now read the fields and level defs
// Current item
let idx = 0
// Now let's walk the section
@ -93,7 +102,7 @@ const et = new class ET {
getRealLevelName(level, libType) {
// First get the real name of the level, and not just the display name
const levelName = def[libType]['levels'][level]
const levelName = defLevels[libType]['levels'][level]
return levelName
}
@ -163,8 +172,35 @@ const et = new class ET {
getLevelFields(level, libType) {
// return fields in a level
const out = []
const levels = def[libType]['level'][et.getRealLevelName(level, libType)]
const out = []
const realName = et.getRealLevelName(level, libType);
console.log('Ged realName: ' + realName)
// We need to load fields and defs into def var
switch(libType) {
case 'movie':
// code block
def = JSON.parse(JSON.stringify(require('./def-Movie.json')));
break;
case 'episode':
// code block
def = JSON.parse(JSON.stringify(require('./def-Episode.json')));
break;
case 'show':
// code block
def = JSON.parse(JSON.stringify(require('./def-Show.json')));
break;
case 'artist':
// code block
def = JSON.parse(JSON.stringify(require('./def-Artist.json')));
break;
case 'photo':
// code block
def = JSON.parse(JSON.stringify(require('./def-Photo.json')));
break;
default:
// code block
}
const levels = def[libType]['level'][realName];
Object.keys(levels).forEach(function(key) {
out.push(levels[key])
});
@ -173,14 +209,14 @@ const et = new class ET {
async getLevelCall (libType, level) {
// this will return number of calls needed
const count = await def[libType]['LevelCount'][level]
const count = await defLevels[libType]['LevelCount'][level]
log.debug('Count needed is: ' + count)
return count
}
getLevels(libType) {
// Returns an json of levels for a selected type og medias, like 'movie'
const levels = def[libType]['levels']
const levels = defLevels[libType]['levels']
log.debug(`ET LevelNames: ${JSON.stringify(levels)}`);
return levels
}
@ -197,7 +233,7 @@ const et = new class ET {
// Only return the keys for possible levels
const out = []
console.log('GED getLevelKeys LibType: ' + libType)
const levels = def[libType]['levels']
const levels = defLevels[libType]['levels']
Object.keys(levels).forEach(function(key) {
out.push(key)
});

View file

@ -49,6 +49,7 @@ const actions = {
var baseURL = getters.getSelectedServerAddress
var accessToken = getters.getSelectedServerToken
var libType = getters.getLibType
var levelName = et.getLevelDisplayName(getters.getSelectedExportLevel, libType)
var libName = et.getLibDisplayName(getters.getSelectedSection, getters.getPmsSections)
excel2.createOutFile( {