forked from DebaucheryLibrarian/traxxx
Added Vivid network. Added ASMR Fantasy to Adult Time. Storing deep URL in database. Added href to header links.
This commit is contained in:
@@ -119,11 +119,11 @@ function qtrailers(context, selector = 'source', attr = 'src', protocol = 'https
|
||||
return attr ? trailers.map(trailer => prefixProtocol(trailer, protocol)) : trailers;
|
||||
}
|
||||
|
||||
function qlength(context, selector, attr = 'textContent') {
|
||||
function qlength(context, selector, match, attr = 'textContent') {
|
||||
const durationString = q(context, selector, attr);
|
||||
|
||||
if (!durationString) return null;
|
||||
const duration = durationString.match(/(\d+:)?\d+:\d+/);
|
||||
const duration = durationString.match(match || /(\d+:)?\d+:\d+/);
|
||||
|
||||
if (duration) {
|
||||
const segments = ['00'].concat(duration[0].split(':')).slice(-3);
|
||||
|
||||
Reference in New Issue
Block a user