forked from Supositware/Haha-Yes
make sure it use .mp4 and not temp file
This commit is contained in:
parent
57e6488b02
commit
b483f1457a
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ class ytpCommand extends Command {
|
||||||
for (let i = 0; i < MAX_CLIPS; i++) {
|
for (let i = 0; i < MAX_CLIPS; i++) {
|
||||||
let random = Math.floor(Math.random() * files.length);
|
let random = Math.floor(Math.random() * files.length);
|
||||||
let vid = `./asset/ytp/userVid/${files[random]}`;
|
let vid = `./asset/ytp/userVid/${files[random]}`;
|
||||||
if (files[random].endsWith('mp4')) {
|
if (files[random].endsWith('mp4') && !files[random].endsWith('temp.mp4')) {
|
||||||
if (!asset.includes(vid)) {
|
if (!asset.includes(vid)) {
|
||||||
asset.push(vid);
|
asset.push(vid);
|
||||||
}
|
}
|
||||||
|
@ -114,7 +114,7 @@ class ytpCommand extends Command {
|
||||||
|
|
||||||
|
|
||||||
let options = {
|
let options = {
|
||||||
debug: false, // Better set this to false to avoid flood in console
|
debug: true, // Better set this to false to avoid flood in console
|
||||||
MIN_STREAM_DURATION: Math.floor((Math.random() * 3) + 1), // Random duration of video clip
|
MIN_STREAM_DURATION: Math.floor((Math.random() * 3) + 1), // Random duration of video clip
|
||||||
sources: './asset/ytp/sources/',
|
sources: './asset/ytp/sources/',
|
||||||
sounds: './asset/ytp/sounds/',
|
sounds: './asset/ytp/sounds/',
|
||||||
|
|
Loading…
Reference in a new issue