AtoraSuunva / booru

Searches boorus for images using some js magic
https://www.npmjs.com/package/booru
MIT License
78 stars 19 forks source link

Video #62

Closed zedxos closed 3 years ago

zedxos commented 3 years ago

Hi how do i make it return mp4 or webp instead of images?

AtoraSuunva commented 3 years ago

You can use the filetype tag (filetype:mp4), but only danbooru and e621/e926 support it (and might be the only sites with mp4s anyway).

zedxos commented 3 years ago

You can use the filetype tag (filetype:mp4), but only danbooru and e621/e926 support it (and might be the only sites with mp4s anyway).

Sorry for asking this stupid question but is it like this? { limit: 1, random: true, filetype: 'mp4' } I did but not working

AtoraSuunva commented 3 years ago

It's a tag

Booru.search('db', ['filetype:mp4'], { limit: 1, random: true })
zedxos commented 3 years ago

It's a tag

Booru.search('db', ['filetype:mp4'], { limit: 1, random: true })

Oh my bad i didnt know tag is like that I misunderstood the options

zedxos commented 3 years ago

But thankss