Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

Commit

Permalink
UGH, more work on the libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
doomsdayrs committed Jun 11, 2019
1 parent 06ee3a3 commit 31a570c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static class fillData extends AsyncTask<Void, Void, Void> {
@Override
protected Void doInBackground(Void... voids) {
try {
novelPage = formatter.parseNovel("http://novelfull.com" + URL);
novelPage = formatter.parseNovel(URL);
NovelFragmentMain.novelPage = novelPage;
Log.d("Loaded Novel:", novelPage.title);
} catch (IOException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,16 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c
System.out.println("Completed.");
try {
Log.d("Novel info load", "Loading");
String u = new fillData().execute(this).get(40, TimeUnit.SECONDS);
String u = new fillData().execute(this).get();
Log.d("Novel info load", "ImageURL: " + u);
Picasso.get()
.load("http://novelfull.com" + u)
.load(u)
.into(imageView);
Log.d("Novel info load", "Loading complete");
} catch (ExecutionException e) {
e.printStackTrace();
} catch (InterruptedException e) {
e.printStackTrace();
} catch (TimeoutException e) {
e.printStackTrace();
}
return view;
}
Expand All @@ -112,6 +111,7 @@ protected String doInBackground(NovelFragmentMain... novelFragmentMains) {
novelFragmentMains[0].title.setText(novelPage.title);
novelFragmentMains[0].author.setText(Arrays.toString(novelPage.authors));
novelFragmentMains[0].description.setText(novelPage.description);
System.out.println(novelPage.novelChapters);
novelFragmentMains[0].novelFragmentChapters.novelChapters = novelPage.novelChapters;
return novelPage.imageURL;
}
Expand Down

0 comments on commit 31a570c

Please sign in to comment.