mirror of
https://github.com/WebTools-NG/WebTools-NG
synced 2024-11-23 11:33:14 +00:00
#507 WIP
This commit is contained in:
parent
bc091749ff
commit
e4a54c6809
1 changed files with 3 additions and 0 deletions
|
@ -114,6 +114,7 @@
|
||||||
selLibrarySize: null,
|
selLibrarySize: null,
|
||||||
LibraryGroupDisabled: true,
|
LibraryGroupDisabled: true,
|
||||||
tableConfig: [
|
tableConfig: [
|
||||||
|
{ prop: 'mediaKey', isHidden: true },
|
||||||
{ prop: 'Key', isHidden: true },
|
{ prop: 'Key', isHidden: true },
|
||||||
{ prop: 'Title',searchable: true,sortable: true, width: 80 },
|
{ prop: 'Title',searchable: true,sortable: true, width: 80 },
|
||||||
{ prop: 'Released',searchable: true,sortable: true, width: 30 },
|
{ prop: 'Released',searchable: true,sortable: true, width: 30 },
|
||||||
|
@ -193,6 +194,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getMediaInfo(key){
|
async getMediaInfo(key){
|
||||||
|
console.log('Ged 44-3', JSON.stringify(this.MItableData))
|
||||||
const url = `${this.srvBaseAddress}/library/metadata/${key}?${this.uriExclude}`;
|
const url = `${this.srvBaseAddress}/library/metadata/${key}?${this.uriExclude}`;
|
||||||
let header = wtutils.PMSHeader;
|
let header = wtutils.PMSHeader;
|
||||||
header['X-Plex-Token'] = this.srvToken;
|
header['X-Plex-Token'] = this.srvToken;
|
||||||
|
@ -208,6 +210,7 @@
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
for (var idx in parts){
|
for (var idx in parts){
|
||||||
let entry = {};
|
let entry = {};
|
||||||
|
entry['mediaKey'] = key;
|
||||||
for (var x in this.selLibrary['location']){
|
for (var x in this.selLibrary['location']){
|
||||||
if ( parts[idx]['file'].startsWith( this.selLibrary['location'][x]['path'] ) )
|
if ( parts[idx]['file'].startsWith( this.selLibrary['location'][x]['path'] ) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue