Added channel support to Gamma scene scraper.
This commit is contained in:
parent
2f9c2332f9
commit
be83505ecf
|
@ -7,6 +7,7 @@ const cheerio = require('cheerio');
|
|||
const moment = require('moment');
|
||||
|
||||
const { ex } = require('../utils/q');
|
||||
const slugify = require('../utils/slugify');
|
||||
|
||||
async function fetchPhotos(url) {
|
||||
const res = await bhttp.get(url);
|
||||
|
@ -189,6 +190,9 @@ async function scrapeScene(html, url, site) {
|
|||
release.tags = hasTrans ? [...rawTags, 'transsexual'] : rawTags;
|
||||
}
|
||||
|
||||
const channel = data?.productionCompany?.name || $('.studioLink a').attr('title')?.trim();
|
||||
if (channel) release.channel = slugify(channel, { delimiter: '' });
|
||||
|
||||
release.poster = videoData.picPreview;
|
||||
|
||||
const photoLink = $('.picturesItem a').attr('href');
|
||||
|
|
Loading…
Reference in New Issue