Skip to content

Commit

Permalink
Add back isRSS and viewcount check to fix when in subscriptions page
Browse files Browse the repository at this point in the history
  • Loading branch information
petaded committed Jun 18, 2023
1 parent 93ebb76 commit 530dea9
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@ export default defineComponent({
// hide livestreams
return false
}
if (this.hideUpcomingPremieres && data.premiereDate != null) {
if (this.hideUpcomingPremieres &&
// Observed for premieres in Local API Channels.
(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.
(data.isRSS && data.viewCount === '0'))) {
// hide upcoming
return false
}
Expand Down

0 comments on commit 530dea9

Please sign in to comment.