rodrigogs / xvideos

xvideos API library
BSD 3-Clause "New" or "Revised" License
221 stars 57 forks source link

can return thumbnail url in videos fresh and search #31

Open bobwatcherx opened 10 months ago

bobwatcherx commented 10 months ago

how to get thumbnail url . i no see image url for thumbnail from you example scripts


// Retrieve fresh videos
const fresh = await xvideos.videos.fresh({ page: 1 });
console.log(fresh.videos); // { url, path, title, duration, profile: { name, url }, views, }
console.log(fresh.pagination.current); // 1 
console.log(fresh.pagination.pages); // [1, 2, 3, 4, 5...]
console.log(fresh.hasNext()); // true
console.log(fresh.hasPrevious()); // false
rodrigogs commented 10 months ago

Oh, long time I dont maintain this lib, I dont even know if it still works. But you can check this file: https://github.com/rodrigogs/xvideos/blob/master/lib/api/videos/details/details.js

In video details you can get thumb urls.