forked from DebaucheryLibrarian/traxxx
Fixed subnetwork spacing in network sidebar. Using derived entry IDs for main Hush scrapers.
This commit is contained in:
parent
33e49e1b08
commit
fa7b2a7a23
|
@ -225,7 +225,7 @@ export default {
|
|||
flex-grow: 1;
|
||||
padding: 1rem;
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: min-content;
|
||||
grid-template-rows: repeat(auto-fit, 6rem);
|
||||
overflow-y: auto;
|
||||
scrollbar-color: $highlight-weak $profile;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue