Fixed banner seed.

This commit is contained in:
DebaucheryLibrarian
2026-02-01 22:57:20 +01:00
parent 8438d2e3b3
commit 7386aa9da7
4 changed files with 20 additions and 9 deletions

View File

@@ -24,7 +24,7 @@ function scrapeAll(scenes) {
const poster = query.img('.thumb img');
if (poster) {
if (poster && /\.\w{3,4}$/.test(poster)) { // missing poster points to https://media.karups.com/thumbs_pg/
release.poster = Array.from(new Set([
poster.replace('.jpg', '-feat_lg.jpg'),
poster,
@@ -68,7 +68,7 @@ function scrapeScene({ query }, { url }) {
// videos and photos seem to be removed, query educated guess just in case
const poster = query.poster('.video-player video') || query.img('.video-poster img');
if (poster) {
if (poster && /\.\w{3,4}$/.test(poster)) { // missing poster points to https://media.karups.com/thumbs_pg/
release.poster = Array.from(new Set([
poster,
poster.replace('-feat_lg', ''),

View File

@@ -140,6 +140,8 @@ async function scrapeScene({ query }, { url, include }) {
};
}
console.log(release.trailer);
const channelSlug = slugify(query.content('.project-tags a[href*="collection/"]'), '');
release.channel = channelMap[channelSlug] || channelSlug;