From 12027b9a76717458a688f6c7473d074692e730b1 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 26 Mar 2022 18:23:33 -0500 Subject: [PATCH] Podcast episode player fixes, episode table ui updates --- client/assets/app.css | 12 ++++++++++++ client/components/modals/podcast/NewModal.vue | 16 +++------------- .../tables/podcast/EpisodeTableRow.vue | 12 +++++++----- .../components/tables/podcast/EpisodesTable.vue | 3 +++ client/components/widgets/PodcastDetailsEdit.vue | 9 +++++++++ client/pages/item/_id/index.vue | 2 +- server/controllers/PodcastController.js | 1 + server/managers/PodcastManager.js | 2 ++ server/objects/PodcastEpisodeDownload.js | 2 +- server/objects/files/AudioTrack.js | 4 ++-- server/objects/mediaTypes/Podcast.js | 1 + server/routers/StaticRouter.js | 1 + server/utils/index.js | 4 ++++ 13 files changed, 47 insertions(+), 22 deletions(-) diff --git a/client/assets/app.css b/client/assets/app.css index 6ec19ed5..90371142 100644 --- a/client/assets/app.css +++ b/client/assets/app.css @@ -187,3 +187,15 @@ Bookshelf Label opacity: 1; filter: blur(20px); } + + +.episode-subtitle { + word-break: break-word; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + line-height: 16px; /* fallback */ + max-height: 32px; /* fallback */ + -webkit-line-clamp: 2; /* number of lines to show */ + -webkit-box-orient: vertical; +} \ No newline at end of file diff --git a/client/components/modals/podcast/NewModal.vue b/client/components/modals/podcast/NewModal.vue index 820ce875..75ebf0e7 100644 --- a/client/components/modals/podcast/NewModal.vue +++ b/client/components/modals/podcast/NewModal.vue @@ -34,9 +34,6 @@
-
- -
@@ -59,6 +56,9 @@
+
+ +
{{ buttonText }}
@@ -262,14 +262,4 @@ export default { #episodes-scroll { max-height: calc(80vh - 200px); } -.episode-subtitle { - word-break: break-word; - overflow: hidden; - text-overflow: ellipsis; - display: -webkit-box; - line-height: 16px; /* fallback */ - max-height: 32px; /* fallback */ - -webkit-line-clamp: 2; /* number of lines to show */ - -webkit-box-orient: vertical; -} \ No newline at end of file diff --git a/client/components/tables/podcast/EpisodeTableRow.vue b/client/components/tables/podcast/EpisodeTableRow.vue index b6e3f2ff..d58863ff 100644 --- a/client/components/tables/podcast/EpisodeTableRow.vue +++ b/client/components/tables/podcast/EpisodeTableRow.vue @@ -10,13 +10,13 @@

{{ title }}

-

+

{{ description }}

- {{ streamIsPlaying ? 'pause' : 'play_arrow' }} -

{{ timeRemaining }}

+ {{ streamIsPlaying ? 'pause' : 'play_arrow' }} +

{{ timeRemaining }}

@@ -37,7 +37,7 @@
-
+
@@ -75,7 +75,9 @@ export default { return this.episode.title || '' }, description() { - return this.episode.description || '' + if (this.episode.subtitle) return this.episode.subtitle + var desc = this.episode.description || '' + return desc }, duration() { return this.$secondsToTimestamp(this.episode.duration) diff --git a/client/components/tables/podcast/EpisodesTable.vue b/client/components/tables/podcast/EpisodesTable.vue index aa8b6154..94175bcd 100644 --- a/client/components/tables/podcast/EpisodesTable.vue +++ b/client/components/tables/podcast/EpisodesTable.vue @@ -1,6 +1,9 @@