File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,6 @@ export function createServer ({repo, connections = []}) {
171
171
res . end ( 'Download started' )
172
172
}
173
173
174
-
175
174
async function ignoreVideoHandler ( req , res , repo , connections = [ ] ) {
176
175
const body = await getBody ( req )
177
176
let { id } = JSON . parse ( body )
@@ -278,6 +277,7 @@ export function createServer ({repo, connections = []}) {
278
277
res . writeHead ( 200 , { 'Content-Type' : 'application/json' } )
279
278
res . end ( JSON . stringify ( videoQuality ) )
280
279
}
280
+
281
281
async function setVideoQualityHandler ( req , res ) {
282
282
const body = await getBody ( req )
283
283
const videoQuality = JSON . parse ( body )
@@ -304,6 +304,7 @@ export function createServer ({repo, connections = []}) {
304
304
res . writeHead ( 200 , { 'Content-Type' : 'text/plain' } )
305
305
res . end ( diskSpaceUsed . toFixed ( 3 ) + 'GB' )
306
306
}
307
+
307
308
function reclaimDiskSpaceHandler ( req , res ) {
308
309
const videos = repo . getVideos ( )
309
310
const ignoredVideos = videos . filter ( video => video . downloaded )
You can’t perform that action at this time.
0 commit comments