quark 原画
This commit is contained in:
parent
9824385138
commit
e10562ce57
|
|
@ -163,6 +163,8 @@ public class QuarkApi {
|
|||
List<Map<String, Object>> listData = listFile(1, shareData, files, subs, shareData.getShareId(), shareData.getFolderId(), 1);
|
||||
|
||||
List<String> playFrom = QuarkApi.get().getPlayFormatList();
|
||||
playFrom = new ArrayList<>(playFrom);
|
||||
playFrom.add("原画");
|
||||
|
||||
List<String> playUrl = new ArrayList<>();
|
||||
|
||||
|
|
@ -197,7 +199,7 @@ public class QuarkApi {
|
|||
|
||||
String fileId = split[0], fileToken = split[1], shareId = split[2], stoken = split[3];
|
||||
String playUrl = "";
|
||||
if (flag.contains("原画")) {
|
||||
if (flag.contains("quark原画")) {
|
||||
playUrl = this.getDownload(shareId, stoken, fileId, fileToken, true);
|
||||
} else {
|
||||
playUrl = this.getLiveTranscoding(shareId, stoken, fileId, fileToken, flag);
|
||||
|
|
@ -550,9 +552,9 @@ public class QuarkApi {
|
|||
if (saveFileId == null) return null;
|
||||
this.saveFileIdCaches.put(fileId, saveFileId);
|
||||
}
|
||||
Map<String, Object> down = Json.parseSafe(api("file/download?" + this.pr + "&uc_param_str=", Collections.emptyMap(), Map.of("fids", this.saveFileIdCaches.get(fileId)), 0, "POST"), Map.class);
|
||||
Map<String, Object> down = Json.parseSafe(api("file/download?" + this.pr + "&uc_param_str=", Collections.emptyMap(), Map.of("fids", List.of(this.saveFileIdCaches.get(fileId))), 0, "POST"), Map.class);
|
||||
if (down.get("data") != null) {
|
||||
return ((List<String>) down.get("data")).get(0);
|
||||
return ((List<Map<String, Object>>) down.get("data")).get(0).get("download_url").toString();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,12 +49,14 @@ public class Quark extends Spider {
|
|||
/* if (ids.size() < 2){
|
||||
return TextUtils.join("$$$", QuarkApi.get().getPlayFormatList());
|
||||
}*/
|
||||
|
||||
for (int i = 1; i <= ids.size(); i++) {
|
||||
|
||||
for (String s : QuarkApi.get().getPlayFormatList()) {
|
||||
playFrom.add(String.format(Locale.getDefault(), "quark" + s + "#%02d", i));
|
||||
|
||||
}
|
||||
|
||||
playFrom.add("quark原画");
|
||||
}
|
||||
return TextUtils.join("$$$", playFrom);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ public class WoggTest {
|
|||
|
||||
@org.junit.Test
|
||||
public void playerContent() throws Exception {
|
||||
String content = spider.playerContent("quark4K", "81c9aa49887d4b07aba861d7dd76d0ac++0ec2d75805f83bd045434f0d22f71489++4be1d75e17aa++wGlrbmw95nBbzO2rbCcEicZ8f4a+z5aKiuyoLQLA5SQ=", new ArrayList<>());
|
||||
String content = spider.playerContent("quark原画", "81c9aa49887d4b07aba861d7dd76d0ac++b2a83edeb7211b3fe316b5ec1be6f19f++4be1d75e17aa++EBR0p92y9GDjeAk2mgUu959KWjj3KIx1w5UgMpVaubg=", new ArrayList<>());
|
||||
System.out.println("playerContent--" + content);
|
||||
JsonObject map = Json.safeObject(content);
|
||||
Gson gson = new GsonBuilder().setPrettyPrinting().create();
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
55832fefa407b9cfa0c0fb18b24b652d
|
||||
046039ed47e1967e85fbc358683fb76a
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;55832fefa407b9cfa0c0fb18b24b652d",
|
||||
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;046039ed47e1967e85fbc358683fb76a",
|
||||
"lives": [
|
||||
{
|
||||
"name": "直播ipv6",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;55832fefa407b9cfa0c0fb18b24b652d",
|
||||
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;046039ed47e1967e85fbc358683fb76a",
|
||||
"lives": [
|
||||
{
|
||||
"name": "直播ipv6",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;55832fefa407b9cfa0c0fb18b24b652d",
|
||||
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;046039ed47e1967e85fbc358683fb76a",
|
||||
"lives": [
|
||||
{
|
||||
"name": "直播ipv6",
|
||||
|
|
|
|||
Loading…
Reference in New Issue