some fixes
This commit is contained in:
parent
5d3853d208
commit
0014999586
3 changed files with 8 additions and 5 deletions
|
@ -1257,7 +1257,7 @@ export class BrowserWindow {
|
|||
"assetUrl": "file:///" +audio,
|
||||
"contentAdvisory": "",
|
||||
"releaseDateTime": "2022-05-13T00:23:00Z",
|
||||
"durationInMilliseconds": Math.floor((metadata.format.duration?? 0) * 1000),
|
||||
"durationInMillis": Math.floor((metadata.format.duration?? 0) * 1000),
|
||||
|
||||
"offers": [
|
||||
{
|
||||
|
|
|
@ -185,15 +185,18 @@
|
|||
return minutes + ":" + (seconds < 10 ? '0' : '') + seconds;
|
||||
},
|
||||
getDataType() {
|
||||
let type = ''
|
||||
if (typeof this.item.attributes.playParams != "undefined") {
|
||||
if (this.item.attributes.playParams?.isLibrary) {
|
||||
return this.item.type
|
||||
type = this.item.type
|
||||
} else {
|
||||
return this.item.attributes.playParams?.kind
|
||||
type = this.item.attributes.playParams?.kind
|
||||
}
|
||||
} else {
|
||||
return this.item.type
|
||||
type = this.item.type
|
||||
}
|
||||
if (type == 'podcast-episodes') type = 'episode';
|
||||
return type;
|
||||
},
|
||||
select(e) {
|
||||
let data_type = this.getDataType()
|
||||
|
|
|
@ -231,7 +231,7 @@
|
|||
},
|
||||
"isPublic": true,
|
||||
"description": {
|
||||
"standard": "LocalSongs"
|
||||
"standard": ""
|
||||
}
|
||||
},
|
||||
"relationships": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue