Added media limit sampling.

This commit is contained in:
2020-04-11 22:49:37 +02:00
parent cb68319ac0
commit fc58850e56
6 changed files with 81 additions and 10 deletions

View File

@@ -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/', '')