Added Tonight's Girlfriend tracking link.

This commit is contained in:
DebaucheryLibrarian
2026-01-22 01:20:14 +01:00
parent e5d457bd55
commit f0a2943687
3 changed files with 10 additions and 2 deletions

View File

@@ -103,6 +103,7 @@ const { argv } = yargs
.option('scene', {
describe: 'Scrape scene info from URL',
type: 'array',
alias: 'scenes',
})
.option('scene-file', {
describe: 'Scrape scene info from URLs in a file',

View File

@@ -104,6 +104,7 @@ async function fetchUpcoming(channel, _page, { parameters }) {
*/
async function fetchScene(sceneUrl, entity, _baseRelease, { parameters }) {
// deep data not identical, contains photoset and full trailer
const slug = new URL(sceneUrl).pathname.match(/\/trailers\/(.*?)\.html/)[1];
const url = `${entity.origin.replace('www.', 'api.')}/v1/content-sets/${slug}`;