Skip to content

armgit / my-yt

Public Imported from GitHub
0

A clean and minimal youtube frontend, without all the ads and whistles

JavaScript

feat: when downloading an excluded videos, it will be included

Christian Fei41d8d65bb466
diff --git a/lib/repository.js b/lib/repository.js
index 6d74008..604bdb9 100644
--- a/lib/repository.js
+++ b/lib/repository.js
@@ -71,7 +71,7 @@ export default class Repository {
return this.videos
}
filterByExcludedTerms (v, excludedTerms = this.getExcludedTerms()) {
- return !excludedTerms.some(term => v.title?.toLowerCase().includes(term) || v.description?.toLowerCase().includes(term))
+ return v.downloaded || !excludedTerms.some(term => v.title?.toLowerCase().includes(term) || v.description?.toLowerCase().includes(term))
}
getVideos (query = {}) {
const isFiltering = Object.keys(query).length > 0 && query.filter