26 |
|
|
27 |
@Override |
@Override |
28 |
public String call() throws Exception { |
public String call() throws Exception { |
29 |
|
//TODO: implement something that can follow redirects |
30 |
return HttpUtil.getContentString(url, 10000); |
return HttpUtil.getContentString(url, 10000); |
31 |
} |
} |
32 |
}); |
}); |
38 |
final String epMatch = "ep" + episode; |
final String epMatch = "ep" + episode; |
39 |
final String noTitle = "Episode #" + season + "." + episode; |
final String noTitle = "Episode #" + season + "." + episode; |
40 |
|
|
41 |
String url = "http://www.imdb.com/title/" + sid + "/episodes?season=" + season; |
String url = "https://www.imdb.com/title/" + sid + "/episodes?season=" + season; |
42 |
|
|
43 |
String rawHtml = getDoc(url); |
String rawHtml = getDoc(url); |
44 |
|
|
45 |
Document page = Jsoup.parse(rawHtml); |
Document page = Jsoup.parse(rawHtml); |
46 |
|
|