Skip to content

Commit

Permalink
Added getOvervewStatus, for filtering the episodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
p0psicles committed Jun 4, 2019
1 parent 3ec57ab commit 277e760
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions themes-default/slim/src/components/display-show.vue
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,9 @@ export default {
for (const season of sortedSeasons) {
const { episodes, ...res } = season;
const filteredEpisodes = episodes.filter(episode => {
const filteredStatus = filterByOverviewStatus.find(overviewStatus => overviewStatus.name === episode.status);
return filteredStatus && filteredStatus.checked;
const episodeOverviewStatus = this.getOverviewStatus(episode.status, episode.quality, show.config.qualities);
const filteredStatus = filterByOverviewStatus.find(overviewStatus => overviewStatus.name === episodeOverviewStatus);
return !filteredStatus || filteredStatus.checked;
});
filteredSortedSeasons.push(Object.assign({
episodes: filteredEpisodes
Expand Down
Loading

0 comments on commit 277e760

Please sign in to comment.