diff --git a/src/agefans/getAllVideoURL.js b/src/agefans/getAllVideoURL.js index 0064740..1b56dd2 100644 --- a/src/agefans/getAllVideoURL.js +++ b/src/agefans/getAllVideoURL.js @@ -145,11 +145,15 @@ function insertModalForm() { } function genUrlItem(title, content = '加载中...') { + const contentHTML = content.startsWith('http') + ? `${content}` + : content + return `
[${title}]
- ${content} -
+ ${contentHTML} +
` } @@ -183,7 +187,7 @@ async function insertResult(list) { .then((vurl) => { const url = decodeURIComponent(vurl) saveLocal(item.href, url) - $msg.text(url) + $msg.html(`${url}`) $msg.data('status', '1') }) .catch((error) => { diff --git a/src/agefans/play.js b/src/agefans/play.js index 8336b70..0711863 100644 --- a/src/agefans/play.js +++ b/src/agefans/play.js @@ -38,8 +38,12 @@ function replacePlayer() { } function showCurrentLink(vurl) { + const decodeVurl = decodeURIComponent(vurl) + if ($('#current-link').length) { - return $('#current-link').text(vurl) + $('#current-link').text(decodeVurl) + $('#current-link').attr('href', decodeVurl) + return } $(`
@@ -47,10 +51,7 @@ function showCurrentLink(vurl) {
本集链接: