From 56aff33bff7df9842a136364389fccf54692500e Mon Sep 17 00:00:00 2001 From: petaded Date: Sun, 18 Jun 2023 10:45:44 +0100 Subject: [PATCH] Changes from PR #3673 --- .../ft-list-lazy-wrapper/ft-list-lazy-wrapper.js | 14 ++++++-------- src/renderer/views/Subscriptions/Subscriptions.js | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/renderer/components/ft-list-lazy-wrapper/ft-list-lazy-wrapper.js b/src/renderer/components/ft-list-lazy-wrapper/ft-list-lazy-wrapper.js index fae88932f3217..ebc5aabba9ab3 100644 --- a/src/renderer/components/ft-list-lazy-wrapper/ft-list-lazy-wrapper.js +++ b/src/renderer/components/ft-list-lazy-wrapper/ft-list-lazy-wrapper.js @@ -48,13 +48,7 @@ export default defineComponent({ }, hideUpcomingPremieres: function () { return this.$store.getters.getHideUpcomingPremieres - } - }, - methods: { - onVisibilityChanged: function (visible) { - this.visible = visible }, - /** * Show or Hide results in the list * @@ -70,10 +64,9 @@ export default defineComponent({ // hide livestreams return false } - if (this.hideUpcomingPremieres && // Observed for premieres in Local API Channels. - (data.durationText === 'PREMIERE' || + (data.premiereDate != null || // viewCount is our only method of detecting premieres in RSS // data without sending an additional request. // If we ever get a better flag, use it here instead. @@ -98,6 +91,11 @@ export default defineComponent({ } return true } + }, + methods: { + onVisibilityChanged: function (visible) { + this.visible = visible + } } }) diff --git a/src/renderer/views/Subscriptions/Subscriptions.js b/src/renderer/views/Subscriptions/Subscriptions.js index 5a441948d1139..5805d62441531 100644 --- a/src/renderer/views/Subscriptions/Subscriptions.js +++ b/src/renderer/views/Subscriptions/Subscriptions.js @@ -206,7 +206,7 @@ export default defineComponent({ return item.viewCount !== '0' } // Observed for premieres in Local API Subscriptions. - return item.durationText !== 'PREMIERE' + return item.premiereDate == null }) } const profileSubscriptions = {