Closed arugaz closed 3 years ago
when i execute this
const pornhub = require('@justalk/pornhub-api'); const video = await pornhub.page(url, ['title','pornstars','download_urls']) video.then((result) => { console.log(result.download_urls) })
its will appear this { '720P': 'links', '240P': 'links', '480P': 'links' }
but when i execute this const pornhub = require('@justalk/pornhub-api'); const video = await pornhub.page(url, ['title','pornstars','download_urls']) video.then((result) => { console.log(result.download_urls.720P) }) its give me an error. do you have any solution?
hmm I've got a solution console.log(res["download_urls"]['720P'])
when i execute this
const pornhub = require('@justalk/pornhub-api'); const video = await pornhub.page(url, ['title','pornstars','download_urls']) video.then((result) => { console.log(result.download_urls) })
its will appear this { '720P': 'links', '240P': 'links', '480P': 'links' }
but when i execute this const pornhub = require('@justalk/pornhub-api'); const video = await pornhub.page(url, ['title','pornstars','download_urls']) video.then((result) => { console.log(result.download_urls.720P) }) its give me an error. do you have any solution?