Skip to content

Commit

Permalink
Force previewURL in Data18Web actor scraping
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizell committed Jul 7, 2018
1 parent d7aeba1 commit d86132f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,10 @@ public ArrayList<Actor> scrapeActors() {
&& (!actorThumbnail.equals("http://img.data18.com/images/no_prev_star.jpg"))) {
try {
actorThumbnail = actorThumbnail.replaceFirst(Pattern.quote("/60/"), "/120/");
Actor actorToAdd = new Actor(actorName, null, new Thumb(actorThumbnail));
Thumb actorThumb = new Thumb(actorThumbnail);
actorThumb.setViewerURL(new URL(document.location()));
actorThumb.setPreviewURL(new URL(actorThumbnail));
Actor actorToAdd = new Actor(actorName, null, actorThumb);
if (!actorList.contains(actorToAdd))
actorList.add(actorToAdd);
} catch (MalformedURLException e) {
Expand Down

0 comments on commit d86132f

Please sign in to comment.