изменен алгоритм выдачи url в Kino
This commit is contained in:
@@ -22,7 +22,7 @@ public class Kino {
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
return kinowarez.getDomain() + url;
|
||||
}
|
||||
|
||||
public KinoWarez getKinowarez() {
|
||||
@@ -30,7 +30,6 @@ public class Kino {
|
||||
}
|
||||
|
||||
public String getPlayerUrl() {
|
||||
String path = url.substring(kinowarez.getDomain().length());
|
||||
return kinowarez.getName().toLowerCase() + path;
|
||||
return kinowarez.getName().toLowerCase() + url;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ public class Onlinelife implements KinoWarez {
|
||||
for (Element element : elements) {
|
||||
Element childElement = element.child(0);
|
||||
String name = childElement.text();
|
||||
String url = childElement.attr("href");
|
||||
String url = childElement.attr("href").substring(DOMAIN.length());
|
||||
|
||||
if (strong) {
|
||||
Matcher matcher = pattern.matcher(name.toLowerCase());
|
||||
|
||||
@@ -60,7 +60,7 @@ public class Seasonvar implements KinoWarez {
|
||||
for (int i = 0; i < suggestions.size(); i++) {
|
||||
outList.add(new Kino(
|
||||
suggestions.get(i).getAsString(),
|
||||
DOMAIN + "/" + data.get(i).getAsString(),
|
||||
"/" + data.get(i).getAsString(),
|
||||
this
|
||||
));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user