Skip to content

Commit 34d1a2d

Browse files
authored
feat (JKAnime): RegExp and Cache Update (PreMiD#10511)
* Update Regex and Presence JKAnime * Update version number to 1.2.1 Signed-off-by: xDoritos <agusssd0@gmail.com> --------- Signed-off-by: xDoritos <agusssd0@gmail.com>
1 parent 3100c72 commit 34d1a2d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

websites/J/JKAnime/metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"url": "jkanime.net",
1414
"regExp": "^https?[:][/][/]([a-z0-9-]+[.])*jkanime[.]net[/]",
15-
"version": "1.2.0",
15+
"version": "1.2.1",
1616
"logo": "https://cdn.rcd.gg/PreMiD/websites/J/JKAnime/assets/logo.png",
1717
"thumbnail": "https://cdn.rcd.gg/PreMiD/websites/J/JKAnime/assets/thumbnail.png",
1818
"color": "#000000",
@@ -23,7 +23,7 @@
2323
"video"
2424
],
2525
"iframe": true,
26-
"iFrameRegExp": "(^|\\.)?(jkanime\\.net|mega\\.nz|sfastwish\\.com|flaswish\\.com|vidhidevip\\.com|callistanise\\.com|mdbekjwqa\\.pw|mp4upload\\.com|streamtape\\.com|dsvplay\\.com|myvidplay\\.com)",
26+
"iFrameRegExp": "(^|\\.)?(jkanime\\.net|mega\\.nz|sfastwish\\.com|flaswish\\.com|vidhidevip\\.com|callistanise\\.com|mdbekjwqa\\.pw|mp4upload\\.com|streamtape\\.com|dsvplay\\.com|myvidplay\\.com|m1xdrop\\.bz|mxdrop\\.to|f75s\\.com|bysekoze\\.com|mxcontent\\.net|voe\\.sx|lancewhosedifficult\\.com)",
2727
"settings": [
2828
{
2929
"id": "useAnimeCover",

websites/J/JKAnime/presence.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ let cache: {
3232
}
3333

3434
async function getEpisodeInfo(text: string) {
35-
if (text === cache.text) {
35+
if (text === cache.text && cache.episodio !== '') {
3636
return {
3737
nombreAnime: cache.nombreAnime,
3838
episodio: cache.episodio,
@@ -44,7 +44,7 @@ async function getEpisodeInfo(text: string) {
4444
const currentEpisode = document.querySelector(
4545
'#episodes-content li.list-group-item.current',
4646
)
47-
const episodio = currentEpisode?.querySelector('h5')?.textContent?.trim() || 'Episodio 1'
47+
const episodio = currentEpisode?.querySelector('h5')?.textContent?.trim() || ''
4848
const nombreAnime = document.querySelector('.video_i a')?.textContent?.trim() || ''
4949
const season = 'Season 1'
5050
const descAnime = document.querySelector('.video_i p')?.textContent?.trim() || ''

0 commit comments

Comments
 (0)