Skip to content

Commit

Permalink
chore(KickAssAnime): fix regex & support beta version (#7522)
Browse files Browse the repository at this point in the history
* chore(KickAssAnime): update to new ui

* chore(KickAssAnime): remove unused code

* chore(KickAssAnime): fix issues
  • Loading branch information
Dark_Ville authored Aug 1, 2023
1 parent aa07c8e commit 19396b3
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 229 deletions.
6 changes: 6 additions & 0 deletions websites/K/KickAssAnime/iframe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@ iframe.on("UpdateData", async () => {
const video: HTMLVideoElement = document.querySelector("video");
if (video && !isNaN(video.duration)) {
iframe.send({
exists: true,
duration: video.duration,
currentTime: video.currentTime,
paused: video.paused,
});
} else if (video) {
iframe.send({
exists: true,
paused: true,
});
}
}
});
10 changes: 5 additions & 5 deletions websites/K/KickAssAnime/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"kickassanime.lol",
"kickassanime.ro"
],
"regExp": "(([a-z0-9-]+[.])*kickassanime([.][a-z]+)+[/])|((www[0-9]*[.])?(kickassanime[.][a-z]+))",
"version": "1.1.9",
"regExp": "(([a-z0-9-]+[.])*kickassanime([.][a-z]+)+)|(kaas[.].*)|((www[0-9]*[.])?(kickassanime[.][a-z]+))",
"version": "1.2.0",
"logo": "https://cdn.rcd.gg/PreMiD/websites/K/KickAssAnime/assets/logo.png",
"thumbnail": "https://cdn.rcd.gg/PreMiD/websites/K/KickAssAnime/assets/thumbnail.png",
"color": "#c7c95b",
Expand All @@ -39,10 +39,10 @@
"value": true
},
{
"id": "cover",
"title": "Show Cover",
"id": "episode-cover",
"title": "Show Episode Thumbnail",
"icon": "fad fa-images",
"value": true
"value": false
}
]
}
Loading

0 comments on commit 19396b3

Please sign in to comment.