From 5eaf9c69ad71342444211c24029140a997d55439 Mon Sep 17 00:00:00 2001 From: advplyr Date: Mon, 28 Apr 2025 16:40:06 -0500 Subject: [PATCH 01/16] Fix server crash when updating excluded prefixes #4221 --- server/controllers/MiscController.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/controllers/MiscController.js b/server/controllers/MiscController.js index 06cd4d84..0e5ad141 100644 --- a/server/controllers/MiscController.js +++ b/server/controllers/MiscController.js @@ -222,7 +222,7 @@ class MiscController { // Update nameIgnorePrefix column on series const allSeries = await Database.seriesModel.findAll({ - attributes: ['id', 'name', 'nameIgnorePrefix'] + attributes: ['id', 'name', 'nameIgnorePrefix', 'libraryId'] }) const bulkUpdateSeries = [] allSeries.forEach((series) => { @@ -230,6 +230,8 @@ class MiscController { if (nameIgnorePrefix !== series.nameIgnorePrefix) { bulkUpdateSeries.push({ id: series.id, + name: series.name, + libraryId: series.libraryId, nameIgnorePrefix }) } From 58cd751b43733ac4c53a2eb546224fd9d2ccd595 Mon Sep 17 00:00:00 2001 From: Josh Vincent Date: Mon, 28 Apr 2025 21:00:22 -0600 Subject: [PATCH 02/16] Improves Year in Review display logic --- client/components/stats/YearInReviewBanner.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/components/stats/YearInReviewBanner.vue b/client/components/stats/YearInReviewBanner.vue index e3677538..62776bc6 100644 --- a/client/components/stats/YearInReviewBanner.vue +++ b/client/components/stats/YearInReviewBanner.vue @@ -164,14 +164,15 @@ export default { beforeMount() { this.yearInReviewYear = new Date().getFullYear() - // When not December show previous year - if (new Date().getMonth() < 11) { + this.availableYears = this.getAvailableYears() + const availableYearValues = this.availableYears.map((y) => y.value) + + // When not December show previous year if data is available + if (new Date().getMonth() < 11 && availableYearValues.includes(this.yearInReviewYear - 1)) { this.yearInReviewYear-- } }, mounted() { - this.availableYears = this.getAvailableYears() - if (typeof navigator.share !== 'undefined' && navigator.share) { this.showShareButton = true } else { From 6819c0b108c1830abbb590631b12fdf9d4e34c07 Mon Sep 17 00:00:00 2001 From: advplyr Date: Tue, 29 Apr 2025 17:46:54 -0500 Subject: [PATCH 03/16] Fix player track tooltip overflowing on share player --- client/components/player/PlayerTrackBar.vue | 7 +++++++ client/pages/share/_slug.vue | 9 ++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/client/components/player/PlayerTrackBar.vue b/client/components/player/PlayerTrackBar.vue index cc581e25..6c96a6bf 100644 --- a/client/components/player/PlayerTrackBar.vue +++ b/client/components/player/PlayerTrackBar.vue @@ -74,6 +74,9 @@ export default { currentChapterStart() { if (!this.currentChapter) return 0 return this.currentChapter.start + }, + isMobile() { + return this.$store.state.globals.isMobile } }, methods: { @@ -145,6 +148,9 @@ export default { }) }, mousemoveTrack(e) { + if (this.isMobile) { + return + } const offsetX = e.offsetX const baseTime = this.useChapterTrack ? this.currentChapterStart : 0 @@ -198,6 +204,7 @@ export default { setTrackWidth() { if (this.$refs.track) { this.trackWidth = this.$refs.track.clientWidth + this.trackOffsetLeft = this.$refs.track.getBoundingClientRect().left } else { console.error('Track not loaded', this.$refs) } diff --git a/client/pages/share/_slug.vue b/client/pages/share/_slug.vue index bcc779d9..64c09963 100644 --- a/client/pages/share/_slug.vue +++ b/client/pages/share/_slug.vue @@ -1,5 +1,5 @@ -
+
{{ $strings.LabelChapterTitle }}
{{ $strings.LabelStart }}
@@ -146,19 +146,29 @@
#
{{ $strings.LabelFilename }}
+ + +
{{ $strings.LabelSize }}