Scraping movie links from Gamma scene page. Removed expand option from scene page media to make way for album button.

This commit is contained in:
DebaucheryLibrarian
2021-01-22 22:55:20 +01:00
parent 40e0c92ec7
commit 985b523031
3 changed files with 34 additions and 21 deletions

View File

@@ -303,6 +303,20 @@ async function scrapeScene(html, url, site, baseRelease, mobileHtml) {
},
];
const movie = $('.dvdLink');
if (movie) {
const movieUrl = qu.prefixUrl(movie.attr('href'), site.url);
release.movie = {
url: movieUrl,
title: movie.attr('title'),
entryId: movieUrl.match(/\/(\d+)(\/|$)/)?.[1],
covers: [movie.find('img').attr('src')],
entity: site,
};
}
return release;
}