Fixed subnetwork spacing in network sidebar. Using derived entry IDs for main Hush scrapers.

This commit is contained in:
2020-03-06 03:15:49 +01:00
parent 33e49e1b08
commit fa7b2a7a23
2 changed files with 7 additions and 4 deletions

View File

@@ -63,8 +63,6 @@ function scrapeAll(scenes, site) {
return scenes.map(({ q, qu, qd, ql }) => {
const release = {};
release.entryId = q('.modelimg img', 'id').match(/set-target-(\d+)/)[1];
release.title = q('h3 a', 'title') || q('h3 a', true);
release.url = qu('h3 a');
@@ -75,6 +73,9 @@ function scrapeAll(scenes, site) {
release.poster = getImageWithFallbacks(q, '.modelimg img', site);
// release.entryId = q('.modelimg img', 'id').match(/set-target-(\d+)/)[1];
release.entryId = deriveEntryId(release);
return release;
});
}
@@ -136,7 +137,6 @@ function scrapeAllTour(scenes) {
function scrapeScene({ html, q, qa, qd, ql }, site, url, baseRelease) {
const release = { url };
release.entryId = html.match(/set-target-(\d+)/)[1];
release.title = q('.centerwrap h2', true);
release.description = q('.videocontent p', true);
@@ -154,6 +154,9 @@ function scrapeScene({ html, q, qa, qd, ql }, site, url, baseRelease) {
const stars = q('.modelrates + p', true).match(/\d.\d/)?.[0];
if (stars) release.stars = Number(stars);
// release.entryId = html.match(/set-target-(\d+)/)[1];
release.entryId = deriveEntryId(release);
return release;
}