Fix incorrect batoto thumbnail url. Create a function to copy the manga from network to local.

This commit is contained in:
inorichi
2015-10-13 16:47:27 +02:00
parent 82ac2b3223
commit 13b4f5c385
3 changed files with 49 additions and 17 deletions

View File

@@ -187,7 +187,7 @@ public class Batoto extends Source {
Elements artistElements = parsedDocument.select("a[href^=http://bato.to/search?artist_name]");
Element descriptionElement = parsedDocument.select("tr").get(5);
Elements genreElements = parsedDocument.select("img[src=http://bato.to/forums/public/style_images/master/bullet_black.png]");
Element thumbnailUrlElement = parsedDocument.select("img[src^=http://img.batoto.net/forums/uploads/]").first();
Element thumbnailUrlElement = parsedDocument.select("img[src^=http://img.bato.to/forums/uploads/]").first();
Manga newManga = new Manga();
newManga.url = mangaUrl;