Added Lucid Flix and Tough Love X to Radical.

This commit is contained in:
DebaucheryLibrarian
2026-01-23 06:19:01 +01:00
parent 718771ea64
commit 05df904f1a
6 changed files with 148 additions and 4 deletions

View File

@@ -140,6 +140,7 @@ module.exports = {
inserted: radical,
purgatoryx: radical,
topwebmodels: radical,
lucidflix: radical,
// hush / hussiepass
eyeontheguy: hush,
hushpass: hush,

View File

@@ -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;