diff --git a/app/src/main/java/com/github/catvod/spider/Market.java b/app/src/main/java/com/github/catvod/spider/Market.java index 7b1e29a8..8c8c8d43 100644 --- a/app/src/main/java/com/github/catvod/spider/Market.java +++ b/app/src/main/java/com/github/catvod/spider/Market.java @@ -126,10 +126,10 @@ public class Market extends Spider { private void checkCopy(String url) { for (Data data : datas) { int index = data.getList().indexOf(new Item(url)); - if (index != -1) { - String text = data.getList().get(index).getCopy(); - if (!text.isEmpty()) Utils.copy(text); - } + if (index == -1) continue; + String text = data.getList().get(index).getCopy(); + if (!text.isEmpty()) Utils.copy(text); + break; } } diff --git a/app/src/main/java/com/github/catvod/utils/Utils.java b/app/src/main/java/com/github/catvod/utils/Utils.java index 432a1fc6..5bdcc6cc 100644 --- a/app/src/main/java/com/github/catvod/utils/Utils.java +++ b/app/src/main/java/com/github/catvod/utils/Utils.java @@ -156,9 +156,9 @@ public class Utils { } public static void copy(String text) { - ClipboardManager clipboard = (ClipboardManager) Init.context().getSystemService(Context.CLIPBOARD_SERVICE); - ClipData clip = ClipData.newPlainText("fongmi", text); - clipboard.setPrimaryClip(clip); + ClipboardManager manager = (ClipboardManager) Init.context().getSystemService(Context.CLIPBOARD_SERVICE); + manager.setPrimaryClip(ClipData.newPlainText("fongmi", text)); + notify("已複製 " + text); } public static void loadUrl(WebView webView, String script) { diff --git a/jar/custom_spider.jar b/jar/custom_spider.jar index 5c275c66..d201c531 100644 Binary files a/jar/custom_spider.jar and b/jar/custom_spider.jar differ diff --git a/jar/custom_spider.jar.md5 b/jar/custom_spider.jar.md5 index e801a98f..092a12aa 100644 --- a/jar/custom_spider.jar.md5 +++ b/jar/custom_spider.jar.md5 @@ -1 +1 @@ -a8d5d275bb8703210af343b98eda5f6d +77f83df61dccdda0e660148285fcc94a diff --git a/json/adult.json b/json/adult.json index 368e58e8..59a2fb6c 100644 --- a/json/adult.json +++ b/json/adult.json @@ -1,5 +1,5 @@ { - "spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;a8d5d275bb8703210af343b98eda5f6d", + "spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;77f83df61dccdda0e660148285fcc94a", "wallpaper": "https://gao.chuqiuyu.tk", "sites": [ { diff --git a/json/config.json b/json/config.json index 6dfbe78c..5c6d1951 100644 --- a/json/config.json +++ b/json/config.json @@ -1,5 +1,5 @@ { - "spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;a8d5d275bb8703210af343b98eda5f6d", + "spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;77f83df61dccdda0e660148285fcc94a", "wallpaper": "http://饭太硬.top/深色壁纸/api.php", "sites": [ {