Compare commits
No commits in common. "4dbb961059b5d3dd0f481080f7332228fcdf9293" and "b30775fabae6c84a1217e74a5acf93432d533a1b" have entirely different histories.
4dbb961059
...
b30775faba
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.61.1",
|
"version": "1.61.0",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.61.1",
|
"version": "1.61.0",
|
||||||
"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": {
|
||||||
|
|
|
||||||
|
|
@ -177,11 +177,6 @@ function curateSocialEntry(url, actorId) {
|
||||||
pattern: 'http(s)\\://(*)modelhub.com/:username(/)(?*)',
|
pattern: 'http(s)\\://(*)modelhub.com/:username(/)(?*)',
|
||||||
format: username => `https://www.modelhub.com/${username}`,
|
format: username => `https://www.modelhub.com/${username}`,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
label: 'imdb',
|
|
||||||
pattern: 'http(s)\\://(*)imdb.com/name/:userId(/)(?*)',
|
|
||||||
format: userId => `https://www.imdb.com/name/${userId}/`,
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const match = platforms.reduce((acc, platform) => {
|
const match = platforms.reduce((acc, platform) => {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ const bhttp = require('bhttp');
|
||||||
const { ex } = require('../utils/q');
|
const { ex } = require('../utils/q');
|
||||||
|
|
||||||
function scrapeProfile(html) {
|
function scrapeProfile(html) {
|
||||||
const { q, qa, qd, qi, qu } = ex(html); /* eslint-disable-line object-curly-newline */
|
const { q, qa, qd, qi } = ex(html); /* eslint-disable-line object-curly-newline */
|
||||||
const profile = {};
|
const profile = {};
|
||||||
|
|
||||||
const bio = qa('.infobox tr[valign="top"]')
|
const bio = qa('.infobox tr[valign="top"]')
|
||||||
|
|
@ -61,9 +61,11 @@ function scrapeProfile(html) {
|
||||||
profile.avatar = `http://www.boobpedia.com${avatarPath}`;
|
profile.avatar = `http://www.boobpedia.com${avatarPath}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
profile.social = qu('.infobox a.external');
|
const socials = qa('.infobox a.external');
|
||||||
|
|
||||||
return profile;
|
console.log(socials);
|
||||||
|
|
||||||
|
// return profile;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function fetchProfile(actorName) {
|
async function fetchProfile(actorName) {
|
||||||
|
|
|
||||||
|
|
@ -42,10 +42,6 @@ function qimages(context, selector = 'img', attr = 'src') {
|
||||||
return qall(context, selector, attr);
|
return qall(context, selector, attr);
|
||||||
}
|
}
|
||||||
|
|
||||||
function qurls(context, selector = 'a', attr = 'href') {
|
|
||||||
return qall(context, selector, attr);
|
|
||||||
}
|
|
||||||
|
|
||||||
function qposter(context, selector = 'video', attr = 'poster') {
|
function qposter(context, selector = 'video', attr = 'poster') {
|
||||||
return q(context, selector, attr);
|
return q(context, selector, attr);
|
||||||
}
|
}
|
||||||
|
|
@ -75,14 +71,12 @@ const funcs = {
|
||||||
qposter,
|
qposter,
|
||||||
qlength,
|
qlength,
|
||||||
qtrailer,
|
qtrailer,
|
||||||
qurls,
|
|
||||||
qa: qall,
|
qa: qall,
|
||||||
qd: qdate,
|
qd: qdate,
|
||||||
qi: qimages,
|
qi: qimages,
|
||||||
qp: qposter,
|
qp: qposter,
|
||||||
ql: qlength,
|
ql: qlength,
|
||||||
qt: qtrailer,
|
qt: qtrailer,
|
||||||
qu: qurls,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
function ctx(element, window) {
|
function ctx(element, window) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue