quark 播放bug
This commit is contained in:
parent
2bcf5cb0a7
commit
3e5d3b4673
|
|
@ -262,14 +262,16 @@ public class QuarkApi {
|
||||||
if (StringUtils.isAllBlank(cookie)) {
|
if (StringUtils.isAllBlank(cookie)) {
|
||||||
cookie = cache.getUser().getCookie();
|
cookie = cache.getUser().getCookie();
|
||||||
}
|
}
|
||||||
|
if (StringUtils.isNoneBlank(cookie)) {
|
||||||
|
initQuark(this.cookie);
|
||||||
|
cache.setUser(User.objectFrom(this.cookie));
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (StringUtils.isAllBlank(cookie) && StringUtils.isAllBlank(serviceTicket)) {
|
if (StringUtils.isAllBlank(cookie) && StringUtils.isAllBlank(serviceTicket)) {
|
||||||
SpiderDebug.log("cookie为空");
|
SpiderDebug.log("cookie为空");
|
||||||
throw new RuntimeException("cookie为空");
|
throw new RuntimeException("cookie为空");
|
||||||
}
|
}
|
||||||
if (StringUtils.isNoneBlank(cookie)) {
|
|
||||||
initQuark(this.cookie);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
String token = serviceTicket;
|
String token = serviceTicket;
|
||||||
OkResult result = OkHttp.get("https://pan.quark.cn/account/info?st=" + token + "&lw=scan", new HashMap<>(), getWebHeaders());
|
OkResult result = OkHttp.get("https://pan.quark.cn/account/info?st=" + token + "&lw=scan", new HashMap<>(), getWebHeaders());
|
||||||
Map json = Json.parseSafe(result.getBody(), Map.class);
|
Map json = Json.parseSafe(result.getBody(), Map.class);
|
||||||
|
|
@ -292,7 +294,7 @@ public class QuarkApi {
|
||||||
stopService();
|
stopService();
|
||||||
startFlow();
|
startFlow();
|
||||||
} finally {
|
} finally {
|
||||||
// while (cache.getUser().getCookie().isEmpty()) SystemClock.sleep(250);
|
while (cache.getUser().getCookie().isEmpty()) SystemClock.sleep(250);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
672f859b8caf636064f3aad14b481021
|
75f65a3e65e2e5d418c5852bbdc2e285
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;672f859b8caf636064f3aad14b481021",
|
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;75f65a3e65e2e5d418c5852bbdc2e285",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
"name": "直播ipv6",
|
"name": "直播ipv6",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;672f859b8caf636064f3aad14b481021",
|
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;75f65a3e65e2e5d418c5852bbdc2e285",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
"name": "直播ipv6",
|
"name": "直播ipv6",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;672f859b8caf636064f3aad14b481021",
|
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;75f65a3e65e2e5d418c5852bbdc2e285",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
"name": "直播ipv6",
|
"name": "直播ipv6",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue