From c74b822bc21b7a7b477287064bcace5990370c1c Mon Sep 17 00:00:00 2001 From: Slow_Life <54318514+SlowLife1661@users.noreply.github.com> Date: Sun, 21 Feb 2021 10:00:57 +0700 Subject: [PATCH 1/2] Fix URL --- websites/I/iQIYI/presence.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/websites/I/iQIYI/presence.ts b/websites/I/iQIYI/presence.ts index aa555fbc0cd6..06540de869d0 100644 --- a/websites/I/iQIYI/presence.ts +++ b/websites/I/iQIYI/presence.ts @@ -143,7 +143,7 @@ presence.on("UpdateData", async () => { if (showButtons){ presenceData.buttons = [{ label: (await strings).watchVideo, - url: document.URL + url: `https://www.iq.com/play/${document.URL.split("?")[0].split("/")[4]}` }]; } else delete presenceData.buttons; @@ -159,4 +159,4 @@ presence.on("UpdateData", async () => { } presence.setActivity(presenceData); -}); \ No newline at end of file +}); From e3ac5bc405377800a9d1b8513c5d1737d34fab59 Mon Sep 17 00:00:00 2001 From: Slow_Life <54318514+SlowLife1661@users.noreply.github.com> Date: Sun, 21 Feb 2021 10:02:18 +0700 Subject: [PATCH 2/2] Wrong one --- websites/I/iQIYI/presence.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/websites/I/iQIYI/presence.ts b/websites/I/iQIYI/presence.ts index 06540de869d0..edd4a2902ba2 100644 --- a/websites/I/iQIYI/presence.ts +++ b/websites/I/iQIYI/presence.ts @@ -94,7 +94,7 @@ presence.on("UpdateData", async () => { if (showButtons){ presenceData.buttons = [{ label: isVShow ? (await strings).watchVideo : isMovie ? (await strings).watchMovie : (await strings).watchEpisode, - url: document.URL + url: `https://www.iq.com/play/${document.URL.split("?")[0].split("/")[4]}` }]; } else delete presenceData.buttons; @@ -143,7 +143,7 @@ presence.on("UpdateData", async () => { if (showButtons){ presenceData.buttons = [{ label: (await strings).watchVideo, - url: `https://www.iq.com/play/${document.URL.split("?")[0].split("/")[4]}` + url: document.URL }]; } else delete presenceData.buttons;