基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
add test case
Predidit2814809a8652
diff --git a/assets/plugins/ant.json b/assets/plugins/ant.jsonindex 5016d2db..f01e81cc 100644--- a/assets/plugins/ant.json+++ b/assets/plugins/ant.json@@ -1,7 +1,7 @@{"name": "Ant","version": "0.0.1",- "muliSources": "false",+ "muliSources": "true","useWebview": "true","userAgent": "","baseURL": "https://www.mayiyingshi.tv",diff --git a/assets/plugins/girigirilove.json b/assets/plugins/girigirilove.jsonindex 56e4542a..f7ab1eb0 100644--- a/assets/plugins/girigirilove.json+++ b/assets/plugins/girigirilove.json@@ -1,7 +1,7 @@{"name": "GiriGiriLove","version": "0.0.1",- "muliSources": "false",+ "muliSources": "true","useWebview": "true","userAgent": "","baseURL": "https://anime.girigirilove.com",diff --git a/assets/plugins/sakura.json b/assets/plugins/sakura.jsonnew file mode 100644index 00000000..ec4f6af0--- /dev/null+++ b/assets/plugins/sakura.json@@ -0,0 +1,14 @@+{+ "name": "Sakura",+ "version": "0.0.1",+ "muliSources": "true",+ "useWebview": "true",+ "userAgent": "",+ "baseURL": "https://www.yhmgo.com/",+ "searchURL":"https://www.yhmgo.com/s_all?ex=1&kw=@keyword",+ "searchList": "//div[4]/div[2]/div[1]/ul/li",+ "searchName": "//h2/a",+ "searchResult": "//h2/a",+ "chapterRoads": "//div[2]/div[2]/div[4]/div/div/ul",+ "chapterResult": "//li/a"+}\ No newline at end of filediff --git a/lib/pages/webview_desktop/webview_desktop_controller.dart b/lib/pages/webview_desktop/webview_desktop_controller.dartindex 9ff9f7a3..55c01880 100644--- a/lib/pages/webview_desktop/webview_desktop_controller.dart+++ b/lib/pages/webview_desktop/webview_desktop_controller.dart@@ -26,7 +26,7 @@ class WebviewDesktopItemController {initJSBridge() async {webviewController.webMessage.listen((event) async {debugPrint('由JS桥收到的消息为 ${event.toString()}');- if (event.toString().startsWith('https://')) {+ if (event.toString().contains('https')) {debugPrint('开始加载 iframe');isIframeLoaded = true;}@@ -46,7 +46,7 @@ class WebviewDesktopItemController {var iframe = iframes[i];var src = iframe.getAttribute('src');- if (src && src.trim() !== '' && src.trim().startsWith('https://')) {+ if (src && src.trim() !== '' && src.includes('https')) {window.chrome.webview.postMessage(src);window.location.href = src;break;