获取清单中...
');
let dataList = null;
try {
dataList = await javDbApi.related(movieId, 1, 20);
} catch (e) {
console.error("获取清单失败:", e);
} finally {
$("#relatedLoading").remove();
}
if (dataList) if (0 !== dataList.length) {
this.displayRelateds(dataList, $relatedContainer);
if (20 === dataList.length) {
$relatedFooter.html('\n 正在从 ${engine.name} 搜索 "${keyword}"...
`);
const cacheKey = `${engine.name}_${keyword}`;
sessionStorage.getItem(cacheKey);
const url = engine.url.replace("{keyword}", encodeURIComponent(keyword));
engine.parseHtml && _GM_xmlhttpRequest({
method: "GET",
url,
onload: (response) => {
try {
const results = engine.parseHtml.call(this, response.responseText, keyword);
results.length > 0 && sessionStorage.setItem(cacheKey, JSON.stringify(results));
this.displayResults($container, results, engine.name);
} catch (e) {
$container.html(`