Updated gallery.js

This commit is contained in:
tom5079
2022-01-20 14:36:40 +09:00
parent 50686c8c3d
commit 1656460b22
2 changed files with 5 additions and 3 deletions

View File

@@ -20,7 +20,9 @@ async function get_gallery(galleryid) {
//related
eval(Array.from(doc.getElementsByTagName('script')).find(elm => elm.innerHTML.includes('var related')).innerHTML);
const lang_list = Array.from(doc.querySelectorAll('#lang-list a'), elm => [elm.innerText, elm.getAttribute('href').slice(11, -5)]);
const lang_list = {};
Array.from(doc.querySelectorAll('#lang-list a')).forEach(elm => lang_list[elm.innerText] = elm.getAttribute('href').slice(11, -5));
const cover = doc.querySelector('.cover img').src;
@@ -53,4 +55,4 @@ async function get_gallery(galleryid) {
tags: tags,
thumbnails: thumbnails
};
}
}

View File

@@ -1 +1 @@
0.0.7-DEV01
0.0.7-DEV02