Compare commits
No commits in common. "277a06c3de218fc943868b990c0d76d30cdc3f4d" and "1408074ef449a36129951f152eb45b050fe9a1db" have entirely different histories.
277a06c3de
...
1408074ef4
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.231.10",
|
"version": "1.231.9",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.231.10",
|
"version": "1.231.9",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@casl/ability": "^5.2.2",
|
"@casl/ability": "^5.2.2",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.231.10",
|
"version": "1.231.9",
|
||||||
"description": "All the latest porn releases in one place",
|
"description": "All the latest porn releases in one place",
|
||||||
"main": "src/app.js",
|
"main": "src/app.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -4,10 +4,6 @@ const unprint = require('unprint');
|
||||||
|
|
||||||
const slugify = require('../utils/slugify');
|
const slugify = require('../utils/slugify');
|
||||||
|
|
||||||
function curateTitle(title) {
|
|
||||||
return title?.replace(/^tokyo hot\s*/i, '');
|
|
||||||
}
|
|
||||||
|
|
||||||
function scrapeAll(scenes, channel) {
|
function scrapeAll(scenes, channel) {
|
||||||
return scenes.map(({ query }) => {
|
return scenes.map(({ query }) => {
|
||||||
const release = {};
|
const release = {};
|
||||||
|
@ -18,7 +14,7 @@ function scrapeAll(scenes, channel) {
|
||||||
release.entryId = pathname.match(/product\/(\w+)/)?.[1];
|
release.entryId = pathname.match(/product\/(\w+)/)?.[1];
|
||||||
release.shootId = query.attribute('img', 'title');
|
release.shootId = query.attribute('img', 'title');
|
||||||
|
|
||||||
release.title = curateTitle(query.content('.title'));
|
release.title = query.content('.title')?.replace(/^tokyo hot\s*/i, '');
|
||||||
release.description = query.content('.text');
|
release.description = query.content('.text');
|
||||||
|
|
||||||
const poster = query.img();
|
const poster = query.img();
|
||||||
|
@ -40,7 +36,7 @@ function scrapeScene({ query }, url, channel) {
|
||||||
release.entryId = new URL(url).pathname.match(/product\/(\w+)/)?.[1];
|
release.entryId = new URL(url).pathname.match(/product\/(\w+)/)?.[1];
|
||||||
release.shootId = query.content('//dt[contains(text(), "Product ID")]/following-sibling::dd[1]');
|
release.shootId = query.content('//dt[contains(text(), "Product ID")]/following-sibling::dd[1]');
|
||||||
|
|
||||||
release.title = curateTitle(query.content('.contents h2'));
|
release.title = query.content('.contents h2');
|
||||||
release.description = query.content('.contents .sentence');
|
release.description = query.content('.contents .sentence');
|
||||||
release.date = query.date('//dt[contains(text(), "Release Date")]/following-sibling::dd[1]', 'YYYY/MM/DD');
|
release.date = query.date('//dt[contains(text(), "Release Date")]/following-sibling::dd[1]', 'YYYY/MM/DD');
|
||||||
release.duration = query.duration('//dt[contains(text(), "Duration")]/following-sibling::dd[1]');
|
release.duration = query.duration('//dt[contains(text(), "Duration")]/following-sibling::dd[1]');
|
||||||
|
|
Loading…
Reference in New Issue