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

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

View File

@ -225,7 +225,7 @@ export default {
flex-grow: 1; flex-grow: 1;
padding: 1rem; padding: 1rem;
grid-template-columns: 1fr; grid-template-columns: 1fr;
grid-template-rows: min-content; grid-template-rows: repeat(auto-fit, 6rem);
overflow-y: auto; overflow-y: auto;
scrollbar-color: $highlight-weak $profile; scrollbar-color: $highlight-weak $profile;
} }

View File

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