Added Tonight's Girlfriend tracking link.
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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}`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user