Added teaser source to Gamma scraper. Not adding Gamma teaser for upcoming releases.

This commit is contained in:
ThePendulum 2020-02-19 04:47:20 +01:00
parent 6c942f5a95
commit 372ff54261
1 changed files with 5 additions and 5 deletions

View File

@ -173,11 +173,11 @@ function scrapeAll(html, site, networkUrl, hasTeaser = true) {
const posterEl = $(element).find('.imgLink img, .tlcImageItem'); const posterEl = $(element).find('.imgLink img, .tlcImageItem');
if (posterEl) release.poster = posterEl.attr('data-original') || posterEl.attr('src'); if (posterEl) release.poster = posterEl.attr('data-original') || posterEl.attr('src');
if (hasTeaser) { if (hasTeaser && release.date && new Date() - release.date > 0) {
release.teaser = { release.teaser = [
src: `https://videothumb.gammacdn.com/307x224/${release.entryId}.mp4`, { src: `https://videothumb.gammacdn.com/600x339/${release.entryId}.mp4` },
quality: 224, { src: `https://videothumb.gammacdn.com/307x224/${release.entryId}.mp4` },
}; ];
} }
return release; return release;