Added media limit sampling.
This commit is contained in:
@@ -42,7 +42,7 @@ function scrapePhotos(html, includeThumbnails = true) {
|
||||
// /createaccount is used by e.g. Tricky Spa native site
|
||||
const src = $(linkEl).find('img').attr('src');
|
||||
|
||||
if (src.match('previews/')) {
|
||||
if (/previews\//.test(src)) {
|
||||
// resource often serves full photo at a modifier URL anyway, add as primary source
|
||||
const highRes = src
|
||||
.replace('previews/', '')
|
||||
|
||||
Reference in New Issue
Block a user