Skip to content

armgit / my-yt

Public Imported from GitHub
0

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

JavaScript

fix: when reclaiming disk space, do not unignore video

Christian Feia3ed900674b6
diff --git a/lib/server.js b/lib/server.js
index 43d665a..86c2989 100644
--- a/lib/server.js
+++ b/lib/server.js
@@ -258,7 +258,7 @@ export function createServer ({repo, connections = []}) {
try {
const files = fs.globSync(`./data/videos/${video.id}*`)
files.forEach(file => fs.unlinkSync(file))
- repo.upsertVideos([Object.assign(video, {downloaded: false, ignored: false})])
+ repo.upsertVideos([Object.assign(video, {downloaded: false})])
} catch (err) {
console.error(err.message)
}