Merge branch 'experimental' of https://github.com/Jafea7/ctbrec-5.3.2-original into experimental
This commit is contained in:
commit
73e1b4ba0c
|
@ -113,7 +113,6 @@ public class WinkTv extends AbstractSite {
|
||||||
if (StringUtil.isBlank(q)) {
|
if (StringUtil.isBlank(q)) {
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
}
|
}
|
||||||
|
|
||||||
String url = "https://api.winktv.co.kr/v1/live";
|
String url = "https://api.winktv.co.kr/v1/live";
|
||||||
FormBody body = new FormBody.Builder()
|
FormBody body = new FormBody.Builder()
|
||||||
.add("offset", "0")
|
.add("offset", "0")
|
||||||
|
@ -132,7 +131,6 @@ public class WinkTv extends AbstractSite {
|
||||||
.header(ORIGIN, getBaseUrl())
|
.header(ORIGIN, getBaseUrl())
|
||||||
.post(body)
|
.post(body)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
try (Response response = getHttpClient().execute(req)) {
|
try (Response response = getHttpClient().execute(req)) {
|
||||||
if (!response.isSuccessful()) {
|
if (!response.isSuccessful()) {
|
||||||
throw new HttpException(response.code(), response.message());
|
throw new HttpException(response.code(), response.message());
|
||||||
|
@ -156,7 +154,6 @@ public class WinkTv extends AbstractSite {
|
||||||
model.setPreview(result.optString("thumbUrl"));
|
model.setPreview(result.optString("thumbUrl"));
|
||||||
models.add(model);
|
models.add(model);
|
||||||
}
|
}
|
||||||
|
|
||||||
return models;
|
return models;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -179,7 +176,6 @@ public class WinkTv extends AbstractSite {
|
||||||
"https://.*?pandalive.co.kr/live/play/([_a-zA-Z0-9]+)",
|
"https://.*?pandalive.co.kr/live/play/([_a-zA-Z0-9]+)",
|
||||||
"https://.*?pandalive.co.kr/channel/([_a-zA-Z0-9]+)"
|
"https://.*?pandalive.co.kr/channel/([_a-zA-Z0-9]+)"
|
||||||
};
|
};
|
||||||
|
|
||||||
for (String pattern : patterns) {
|
for (String pattern : patterns) {
|
||||||
Matcher m = Pattern.compile(pattern).matcher(url);
|
Matcher m = Pattern.compile(pattern).matcher(url);
|
||||||
if (m.matches()) {
|
if (m.matches()) {
|
||||||
|
|
Loading…
Reference in New Issue