forked from DebaucheryLibrarian/traxxx
Added Kink scraper with elaborate site specification.
This commit is contained in:
@@ -65,8 +65,7 @@ function scrapeScene(html, url, site) {
|
||||
.find('a[href*="com/model"]')
|
||||
.map((actorIndex, actorElement) => $(actorElement).text()).toArray();
|
||||
|
||||
const runtime = $('span[title="Runtime"]').text().trim().split(':');
|
||||
const duration = Number(runtime[0]) * 3600 + Number(runtime[1]) * 60 + Number(runtime[2]);
|
||||
const duration = moment.duration($('span[title="Runtime"]').text().trim()).asSeconds();
|
||||
|
||||
const rawTags = $(tagsElement).find('a').map((tagIndex, tagElement) => $(tagElement).text()).toArray();
|
||||
const tags = rawTags.reduce((accTags, tag) => (tagMap[tag] ? [...accTags, tagMap[tag]] : accTags), []);
|
||||
|
||||
Reference in New Issue
Block a user