Fix [BUG] Audio Album Export missing artist #392

This commit is contained in:
Tommy Mikkelsen 2022-05-14 23:06:31 +02:00
parent d32bd20822
commit 18366b2932
4 changed files with 5 additions and 5 deletions

View file

@ -16,6 +16,7 @@
* [#487 ET Settings Page missing text](https://github.com/WebTools-NG/WebTools-NG/issues/487)
* Internal: Updated node.js to V16.13
* [#494 ET Export optimized versions name](https://github.com/WebTools-NG/WebTools-NG/issues/494)
* [#392 Audio Album Export missing artist](https://github.com/WebTools-NG/WebTools-NG/issues/392)
## V0.3.16 (20220511)

View file

@ -3,12 +3,14 @@
"level": {
"level1": [
"Key",
"Artist",
"Title",
"Summary",
"Studio"
],
"level2": [
"Key",
"Artist",
"Title",
"Summary",
"Studio",

View file

@ -1265,7 +1265,7 @@
"Track Counts":
{
"key": "$.leafCount",
"call": 1,
"call": 2,
"type": "string"
},
"Type":

View file

@ -1011,16 +1011,13 @@ const etHelper = new class ETHELPER {
async getItemDetails( { key })
{
var include = await this.getIncludeInfo();
// Special case for shows export of level all, do not go for /children
if ( ( this.Settings.libTypeSec === this.ETmediaType.Show) && ( this.Settings.levelName === 'all') ){
if ( key.toString().endsWith("/children") ){
key = key.toString().slice(0, -9);
}
let url = `${this.Settings.baseURL}${key}`;
if ( include ){
url = `${url}?${include}`;
}
this.PMSHeader["X-Plex-Token"] = this.Settings.accessToken;
log.verbose(`[ethelper.js] (getItemDetails) Calling url in getItemDetails: ${url}`)
let response = await fetch(url, { method: 'GET', headers: this.PMSHeader});