forked from DebaucheryLibrarian/traxxx
Fixed Porn Doe's poster query. Checking style attribute existence in qu before attempting to use it.
This commit is contained in:
@@ -10,12 +10,14 @@ function scrapeAll(scenes) {
|
||||
release.url = query.url('a');
|
||||
release.entryId = release.url.match(/\/watch\/(\d+)/)[1];
|
||||
|
||||
release.title = query.q('.bottom h4', true);
|
||||
release.title = query.cnt('.bottom .h4') || query.q('.bottom .link', 'title');
|
||||
release.date = query.date('.extra-info:not(.actors)', 'DD MMMM YYYY');
|
||||
|
||||
release.actors = query.all('.actors a strong', true);
|
||||
|
||||
const poster = query.img('.thumb img');
|
||||
// const poster = query.img('.thumb img');
|
||||
const poster = query.img('.thumb', 'data-bg');
|
||||
|
||||
release.poster = [
|
||||
poster.replace('512x288', '1472x828'),
|
||||
poster,
|
||||
|
||||
Reference in New Issue
Block a user