Skip to content

Commit c107b98

Browse files
committed
fix: exclude format when consolidating videos
1 parent bfc9f83 commit c107b98

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/repository.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ export default class Repository {
3232
fs.readdirSync(`${this.basePath}/videos`).forEach(file => {
3333
const format = file.substring(file.lastIndexOf('.') + 1)
3434
if (!['mp4', 'webm'].includes(format)) return
35-
if (file.includes('.uncut.')) return
35+
if (file.includes('.uncut.') || file.includes('.f')) return // skip .uncut. and formats
3636
const videoId = file.replace('.mp4', '').replace('.webm', '')
37-
if (videoId.includes('.')) return // skip formats
3837
const location = `${this.basePath}/videos/${file}`
3938
this.updateVideo(videoId, {downloaded: true, location, format})
4039
})

0 commit comments

Comments
 (0)