Fixed CzechAV to accomodate teasers instead of photos. Fixed error trying to flush non-existent media file.

This commit is contained in:
DebaucheryLibrarian
2020-10-25 21:43:36 +01:00
parent 0e804db130
commit 0027be65eb
3 changed files with 7 additions and 9 deletions

View File

@@ -12,7 +12,8 @@ function scrapeAll(scenes, channel) {
release.title = query.cnt('.nice-title');
release.poster = query.img('img.poster');
release.photos = query.q('img.poster', 'data-urls').split(' ');
release.photos = query.q('img.poster', 'data-urls')?.split(' ');
release.teaser = query.video('img.poster', 'data-thumbnail');
if (query.exists('.info')) {
release.date = query.date('.updated', 'MM/DD/YYYY');

View File

@@ -3,13 +3,12 @@
async function fetchLatest() {
return [
{
title: 'Hot chicks arse fucked',
title: 'Hot chick arse fucked',
date: new Date(),
},
];
}
module.exports = {
fetchLatest,
};