Skip to content

Commit

Permalink
Fix hide premiere
Browse files Browse the repository at this point in the history
  • Loading branch information
petaded committed Jun 18, 2023
1 parent de7a8b4 commit 93ebb76
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,7 @@ export default defineComponent({
// hide livestreams
return false
}

if (this.hideUpcomingPremieres &&
// Observed for premieres in Local API Channels.
(data.durationText === 'PREMIERE' ||
// 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'))) {
if (this.hideUpcomingPremieres && data.premiereDate != null) {
// hide upcoming
return false
}
Expand Down

0 comments on commit 93ebb76

Please sign in to comment.