mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-09 17:58:21 +00:00
fix: respect "hideWatched" preference in video feed
This commit is contained in:
parent
e754831786
commit
ff0ca6442e
@ -83,9 +83,14 @@ export default {
|
||||
},
|
||||
filteredVideos(_this) {
|
||||
const selectedGroup = _this.channelGroups.filter(group => group.groupName == _this.selectedGroupName);
|
||||
|
||||
const videos = this.getPreferenceBoolean("hideWatched", false)
|
||||
? this.videos.filter(video => !video.watched)
|
||||
: this.videos;
|
||||
|
||||
return _this.selectedGroupName == ""
|
||||
? _this.videos
|
||||
: _this.videos.filter(video => selectedGroup[0].channels.includes(video.uploaderUrl.substr(-11)));
|
||||
? videos
|
||||
: videos.filter(video => selectedGroup[0].channels.includes(video.uploaderUrl.substr(-11)));
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
|
Loading…
Reference in New Issue
Block a user