云盘多链接问题修复
This commit is contained in:
parent
0f88c23b82
commit
13929bb759
|
|
@ -168,6 +168,7 @@ public class QuarkApi {
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
SpiderDebug.log("资源已取消:" + e.getMessage());
|
SpiderDebug.log("资源已取消:" + e.getMessage());
|
||||||
Notify.show("资源已取消");
|
Notify.show("资源已取消");
|
||||||
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
List<String> playFrom = QuarkApi.get().getPlayFormatList();
|
List<String> playFrom = QuarkApi.get().getPlayFormatList();
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,13 @@ package com.github.catvod.spider;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
|
||||||
import com.github.catvod.api.QuarkApi;
|
import com.github.catvod.api.QuarkApi;
|
||||||
import com.github.catvod.bean.Result;
|
import com.github.catvod.bean.Result;
|
||||||
import com.github.catvod.bean.quark.ShareData;
|
import com.github.catvod.bean.quark.ShareData;
|
||||||
import com.github.catvod.crawler.Spider;
|
import com.github.catvod.crawler.Spider;
|
||||||
|
import com.github.catvod.crawler.SpiderDebug;
|
||||||
|
import com.github.catvod.utils.Notify;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
@ -72,7 +75,11 @@ public class Quark extends Spider {
|
||||||
List<String> playUrl = new ArrayList<>();
|
List<String> playUrl = new ArrayList<>();
|
||||||
for (String id : ids) {
|
for (String id : ids) {
|
||||||
ShareData shareData = QuarkApi.get().getShareData(id);
|
ShareData shareData = QuarkApi.get().getShareData(id);
|
||||||
|
try {
|
||||||
playUrl.add(QuarkApi.get().getVod(shareData).getVodPlayUrl());
|
playUrl.add(QuarkApi.get().getVod(shareData).getVodPlayUrl());
|
||||||
|
} catch (Exception e) {
|
||||||
|
SpiderDebug.log("获取播放地址出错:" + e.getMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return TextUtils.join("$$$", playUrl);
|
return TextUtils.join("$$$", playUrl);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
6777330057a51172b51f6a400482b047
|
f9c6ffc30c6a09b30ee403675a8851af
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;6777330057a51172b51f6a400482b047",
|
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;f9c6ffc30c6a09b30ee403675a8851af",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
"name": "直播",
|
"name": "直播",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;6777330057a51172b51f6a400482b047",
|
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;f9c6ffc30c6a09b30ee403675a8851af",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
"name": "直播ipv6",
|
"name": "直播ipv6",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;6777330057a51172b51f6a400482b047",
|
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;f9c6ffc30c6a09b30ee403675a8851af",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
"name": "直播ipv6",
|
"name": "直播ipv6",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;6777330057a51172b51f6a400482b047",
|
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;f9c6ffc30c6a09b30ee403675a8851af",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
"name": "直播",
|
"name": "直播",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue