use all types of titles

main
hazy 11 months ago
parent f2f239991c
commit 573cd98ee1

@ -33,7 +33,7 @@ function random(chars, length = 8) {
}
function titleGen(category) {
category = category??Math.round(Math.random()*20)
category = category??Math.round(Math.random()*6)
let title
switch (category) {
case 0:
@ -77,7 +77,7 @@ function shuffleArray(array) {
async function writeList(count) {
let found = []
for (let i = 0; i < count; i++) {
let title = titleGen(10)
let title = titleGen()
let items = (await ytsr(title, { pages: 1 })).items
let fewViews = items.filter(e => {
return e.type=='video'&&e.views<10

Loading…
Cancel
Save