Added Lucid Flix and Tough Love X to Radical.
This commit is contained in:
@@ -140,6 +140,7 @@ module.exports = {
|
||||
inserted: radical,
|
||||
purgatoryx: radical,
|
||||
topwebmodels: radical,
|
||||
lucidflix: radical,
|
||||
// hush / hussiepass
|
||||
eyeontheguy: hush,
|
||||
hushpass: hush,
|
||||
|
||||
@@ -78,11 +78,27 @@ function scrapeScene(data, channel, parameters) {
|
||||
|
||||
release.tags = data.tags;
|
||||
|
||||
release.channel = slugify(data.site, '');
|
||||
release.qualities = Object.values(data.videos || []).map((video) => video.height);
|
||||
|
||||
release.photoCount = Number(data.photos_duration) || null;
|
||||
|
||||
if (data.serie) {
|
||||
release.channel = slugify(data.site, '');
|
||||
|
||||
release.serie = {
|
||||
entryId: data.serie.id,
|
||||
title: data.serie.title,
|
||||
date: unprint.extractDate(data.serie.publish_date, 'YYYY/MM/DD HH:mm:ss'),
|
||||
poster: data.serie.thumb,
|
||||
};
|
||||
} else if (parameters.siteAsSerie && data.site) {
|
||||
release.serie = {
|
||||
entryId: data.site_domain?.split('.')[0] || slugify(data.site, ''),
|
||||
title: data.site,
|
||||
};
|
||||
} else {
|
||||
release.channel = slugify(data.site, '');
|
||||
}
|
||||
|
||||
return release;
|
||||
}
|
||||
|
||||
@@ -147,7 +163,7 @@ async function fetchUpcoming(channel, _page, { parameters }) {
|
||||
}
|
||||
|
||||
async function fetchScene(url, channel, baseScene, { parameters }) {
|
||||
if (baseScene.entryId) {
|
||||
if (baseScene.entryId && !parameters.forceDeep) {
|
||||
// identical data
|
||||
return baseScene;
|
||||
}
|
||||
@@ -157,7 +173,10 @@ async function fetchScene(url, channel, baseScene, { parameters }) {
|
||||
const res = await http.get(`${channel.url}/_next/data/${endpoint}/${parameters.videos || 'videos'}/${slug}.json?slug=${slug}`);
|
||||
|
||||
if (res.ok && res.body.pageProps?.content) {
|
||||
return scrapeScene(res.body.pageProps.content, channel, parameters);
|
||||
return scrapeScene({
|
||||
...res.body.pageProps.content,
|
||||
serie: res.body.pageProps.playlist?.data[0],
|
||||
}, channel, parameters);
|
||||
}
|
||||
|
||||
return res.status;
|
||||
|
||||
Reference in New Issue
Block a user