Skip to content

Commit

Permalink
fix(MyCanal): changed new path to img tag (#7460)
Browse files Browse the repository at this point in the history
* fix(MyCanal): changed new path to img tag

* fix(MyCanal): edit selector name to dymanic selector
  • Loading branch information
itsmelouis authored Jul 12, 2023
1 parent daf090c commit ba5493b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion websites/M/myCANAL/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"nl": "Canal + is een Franse abonnementsaanbieder die is gekoppeld aan het kanaal met dezelfde naam. Het is eigendom van Vivendi met een aandeel van honderd procent."
},
"url": "www.canalplus.com",
"version": "2.0.7",
"version": "2.0.8",
"logo": "https://cdn.rcd.gg/PreMiD/websites/M/myCANAL/assets/logo.png",
"thumbnail": "https://cdn.rcd.gg/PreMiD/websites/M/myCANAL/assets/thumbnail.png",
"color": "#000",
Expand Down
4 changes: 2 additions & 2 deletions websites/M/myCANAL/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ presence.on("UpdateData", async () => {
).textContent;
presenceData.state = `sur ${
document.querySelector<HTMLImageElement>(
`#\\3${channelID} > a > div > div > div > div > div > img`
`#\\3${channelID}_toFocus > div[class*="cardLogoChannel"] > div > img`
).alt
}`;
[presenceData.startTimestamp, presenceData.endTimestamp] =
presence.getTimestamps(video.currentTime, video.duration);
presenceData.largeImageKey = showCover
? document.querySelector<HTMLImageElement>(
`#\\3${channelID} > a > div > div > div > div > div > img`
`#\\3${channelID}_toFocus > div[class*="cardLogoChannel"] > div > img`
).src
: Assets.Logo;
presenceData.smallImageKey = Assets.Live;
Expand Down

0 comments on commit ba5493b

Please sign in to comment.