diff --git a/pages/item/_id.vue b/pages/item/_id.vue index bddb2205..7940e7a4 100644 --- a/pages/item/_id.vue +++ b/pages/item/_id.vue @@ -15,31 +15,48 @@ more_vert -

{{ seriesName }}

-

By {{ author }}

-

Narrated By {{ narratorName }}

+

+ +

+

By {{ author }}

+

+ By + +

-
- -

connected

-

{{ libraryItem.serverAddress }}

+

+ Narrated By + +

-
-
-

{{ $elapsedPretty(duration) }}

-
- -
-

{{ $bytesPretty(size) }}

-
-
-

{{ numTracks }} Track{{ numTracks > 1 ? 's' : '' }}

-
-
-

{{ numChapters }} Chapter{{ numChapters > 1 ? 's' : '' }}

-
+ +

connected

+

{{ libraryItem.serverAddress }}

+ +
+
+

{{ $elapsedPretty(duration) }}

+
+ +
+

{{ $bytesPretty(size) }}

+
+
+

{{ numTracks }} Track{{ numTracks > 1 ? 's' : '' }}

+
+
+

{{ numChapters }} Chapter{{ numChapters > 1 ? 's' : '' }}

@@ -198,13 +215,17 @@ export default { title() { return this.mediaMetadata.title }, - author() { - if (this.isPodcast) return this.mediaMetadata.author - return this.mediaMetadata.authorName + podcastAuthor() { + if (!this.isPodcast) return null + return this.mediaMetadata.author || '' }, - narratorName() { + bookAuthors() { if (this.isPodcast) return null - return this.mediaMetadata.narratorName + return this.mediaMetadata.authors || [] + }, + narrators() { + if (this.isPodcast) return null + return this.mediaMetadata.narrators || [] }, description() { return this.mediaMetadata.description || '' @@ -212,9 +233,16 @@ export default { series() { return this.mediaMetadata.series || [] }, - seriesName() { - // For books only on toJSONExpanded - return this.mediaMetadata.seriesName || '' + seriesList() { + if (this.isPodcast) return null + return this.series.map((se) => { + var text = se.name + if (se.sequence) text += ` #${se.sequence}` + return { + ...se, + text + } + }) }, duration() { return this.media.duration