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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user