forked from DebaucheryLibrarian/traxxx
Showing movie covers as poster when available.
This commit is contained in:
@@ -208,13 +208,12 @@ function scrapeMovie(html, url, site) {
|
||||
const { document } = new JSDOM(html).window;
|
||||
const movie = { url, site };
|
||||
|
||||
console.log(url);
|
||||
|
||||
movie.entryId = document.querySelector('.dvd_details_overview .rating_box').dataset.id;
|
||||
movie.title = document.querySelector('.title_bar span').textContent;
|
||||
movie.covers = Array.from(document.querySelectorAll('#dvd-cover-flip > a'), el => el.href);
|
||||
movie.channel = document.querySelector('.update_date a').textContent;
|
||||
movie.date = new Date();
|
||||
movie.releases = Array.from(document.querySelectorAll('.cell.dvd_info > a'), el => el.href);
|
||||
|
||||
return movie;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user