forked from Supositware/Haha-Yes
remove the check for temp.mp4 as it was not the issue
This commit is contained in:
parent
3c9d1be819
commit
afa3e56703
1 changed files with 2 additions and 2 deletions
|
@ -99,11 +99,11 @@ class ytpCommand extends Command {
|
|||
mp4.push(file);
|
||||
}
|
||||
});
|
||||
// Select random vid depending on the ammount of MAX_CLIPS
|
||||
// Select random vid depending on the amount of MAX_CLIPS
|
||||
for (let i = 0; i < MAX_CLIPS; i++) {
|
||||
let random = Math.floor(Math.random() * files.length);
|
||||
let vid = `./asset/ytp/userVid/${files[random]}`;
|
||||
if (files[random].endsWith('mp4') && !files[random].endsWith('temp.mp4')) {
|
||||
if (files[random].endsWith('mp4')) {
|
||||
if (!asset.includes(vid)) {
|
||||
asset.push(vid);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue