Added tag page. Added default 'anal' tag to Vixen scraper for Tushy and Tushy Raw.

This commit is contained in:
2019-11-11 05:18:28 +01:00
parent 4c1087ca53
commit 681f1bca85
37 changed files with 348 additions and 84 deletions

View File

@@ -23,9 +23,7 @@ async function storePoster(release, releaseEntry) {
console.log(`Storing poster for (${release.site.name}, ${releaseEntry.id}) "${release.title}"`);
const res = await bhttp.get(release.poster);
const thumbnail = await sharp(res.body)
.resize({ width: Math.floor((config.media.thumbnailSize / 9) * 16), height: config.media.thumbnailSize }) // ensure thumbnail is 16:9
.toBuffer();
const thumbnail = await sharp(res.body).resize({ height: config.media.thumbnailSize }).toBuffer();
if (res.statusCode === 200) {
const { pathname } = new URL(release.poster);