Skip to content

Commit

Permalink
Fix poster and label for aventertainment parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizell committed Sep 29, 2017
1 parent 9e02431 commit 65791ff
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,15 +311,16 @@ public SearchResult[] getSearchResults(String searchString)
}
list.add( new SearchResult(href, label, thumb) );
}
elements = doc.select(".list-cover a");
elements = doc.select(".list-cover");
for (Element e : elements) {
String href = e.attr("href");
String label = "";
Element root = e.parent().parent().parent();
String href = root.select(":nth-child(1) a").get(1).attr("href");
String label = root.select(":nth-child(1) a").get(1).text();
Elements selectThumb = e.select("img");
Thumb thumb = null;
for (Element thumbElement : selectThumb) {
String attr = thumbElement.attr("src");
if (attr.startsWith("http://imgs.aventertainments.com/product_images") || attr.startsWith("http://imgs.aventertainments.com/new/jacket_images/")) {
if (attr.startsWith("http://imgs.aventertainments.com/product_images") || attr.startsWith("http://imgs.aventertainments.com/new/jacket_images/") || attr.startsWith("http://imgs.aventertainments.com/archive/jacket_images/")) {
thumb = new Thumb(attr);
}
}
Expand Down

0 comments on commit 65791ff

Please sign in to comment.