Code update

This commit is contained in:
tom5079
2022-01-20 15:35:49 +09:00
parent 47abbfe35b
commit 2ac8bbf36d
4 changed files with 9 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ async function get_gallery_block(galleryid) {
const gallery_url = title_elm.href;
const title = title_elm.textContent;
const thumbnails = Array.from(doc.querySelectorAll('.dj-img-cont img'), elm => `https:${elm.getAttribute('data-src').replace('bigtn', 'webpbigtn').replace(/.jpg$/, '.webp')}`);
const thumbnails = Array.from(doc.querySelectorAll('.dj-img-cont img'), elm => replace_jpg_tn(elm.getAttribute('data-src')));
const artists = Array.from(doc.querySelectorAll('.artist-list a'), elm => elm.innerText);
const series = Array.from(doc.querySelectorAll('a[href^="/series/"]'), elm => elm.innerText);