Added teaser source to Gamma scraper. Not adding Gamma teaser for upcoming releases.
This commit is contained in:
parent
6c942f5a95
commit
372ff54261
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue