Skip to content

Commit

Permalink
Changes from PR FreeTubeApp#3673
Browse files Browse the repository at this point in the history
  • Loading branch information
petaded authored and PikachuEXE committed Jun 28, 2023
1 parent d989af2 commit 56aff33
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand All @@ -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.
Expand All @@ -98,6 +91,11 @@ export default defineComponent({
}
return true
}
},
methods: {
onVisibilityChanged: function (visible) {
this.visible = visible
}

}
})
2 changes: 1 addition & 1 deletion src/renderer/views/Subscriptions/Subscriptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 56aff33

Please sign in to comment.