Showing movie covers as poster when available.

This commit is contained in:
2019-12-13 03:57:01 +01:00
parent 73f9d568b0
commit e69b7744c8
7 changed files with 56 additions and 545 deletions

View File

@@ -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;
}