forked from DebaucheryLibrarian/traxxx
Added American Pornstar. Improved Jules Jordan scraper to accomodate for American Pornstar. Changed entity logo mogrify settings to ensure both minimum height and width.
This commit is contained in:
@@ -40,6 +40,10 @@ function formatDate(dateValue, format, inputFormat) {
|
||||
}
|
||||
|
||||
function prefixUrl(urlValue, origin, protocol = 'https') {
|
||||
if (/^http/.test(urlValue)) {
|
||||
return urlValue;
|
||||
}
|
||||
|
||||
if (protocol && /^\/\//.test(urlValue)) {
|
||||
return `${protocol}:${urlValue}`;
|
||||
}
|
||||
@@ -48,7 +52,7 @@ function prefixUrl(urlValue, origin, protocol = 'https') {
|
||||
return `${origin}${urlValue}`;
|
||||
}
|
||||
|
||||
return urlValue;
|
||||
return `${origin}/${urlValue}`;
|
||||
}
|
||||
|
||||
function q(context, selector, attrArg, applyTrim = true) {
|
||||
|
||||
Reference in New Issue
Block a user