Added VogoV (no trailer yet). Fixed MindGeek profile scraper.

This commit is contained in:
2020-01-28 03:05:53 +01:00
parent 601196ddeb
commit 76852daf6d
12 changed files with 128 additions and 5 deletions

View File

@@ -25,6 +25,10 @@ function qall(context, selector, attrArg, trim = true) {
return Array.from(context.querySelectorAll(selector));
}
function qmeta(context, selector, attrArg = 'content', trim = true) {
return q(context, selector, attrArg, trim);
}
function qdate(context, selector, format, match, attr = 'textContent') {
const dateString = context.querySelector(selector)?.[attr];
@@ -76,6 +80,7 @@ const funcs = {
qimages,
qposter,
qlength,
qmeta,
qtrailer,
qurls,
qa: qall,
@@ -83,6 +88,7 @@ const funcs = {
qi: qimages,
qp: qposter,
ql: qlength,
qm: qmeta,
qt: qtrailer,
qu: qurls,
};
@@ -98,6 +104,7 @@ function ctx(element, window) {
return {
element,
document: element,
...(window && { window }),
...contextFuncs,
};