Skip to content

Commit 21427f1

Browse files
committed
fix search
1 parent c047a38 commit 21427f1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "better-voiranime",
33
"author": "Dastan",
4-
"version": "0.0.81",
4+
"version": "0.0.82",
55
"description": "A powerful UI/UX changer for 'voiranime.com'",
66
"type": "module",
77
"scripts": {

src/common/api.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { BASE_URL, getCurrentSection, NEED_REFRESH, onTrigger } from './utils'
2-
import { parseHTML, parseFormData } from './parser'
1+
import { parseFormData, parseHTML } from './parser'
2+
import { BASE_URL, NEED_REFRESH, getCurrentSection, onTrigger } from './utils'
33

44
export const API_URL = `${BASE_URL}/wp-admin/admin-ajax.php`
55
export const API_OPTIONS = 'current_page_id=15&qtranslate_lang=0&filters_changed=0&filters_initial=1&asp_gen%5B%5D=title&asp_gen%5B%5D=content&asp_gen%5B%5D=excerpt&customset%5B%5D=wp-manga&aspf%5Bvf__1%5D=vf'
@@ -88,7 +88,7 @@ export async function fetchAnimes (search, language) {
8888
options: API_OPTIONS
8989
}
9090
}).then(async (data) => {
91-
data = data.replace(/\n/gm, '').match(/!!ASPSTART_DATA!!(.*)!!ASPEND_DATA!!/)?.[1] ?? []
91+
data = data.replace(/\n/gm, '').match(/ASPSTART_DATA___(.*)___ASPEND_DATA/)?.[1] ?? []
9292
try {
9393
data = JSON.parse(data)
9494
} catch (error) {

src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Better VoirAnime",
3-
"version": "0.0.81",
3+
"version": "0.0.82",
44
"manifest_version": 3,
55
"description": "A powerful UI/UX changer for 'voiranime.com'",
66
"icons": {

0 commit comments

Comments
 (0)