Skip to content

Commit

Permalink
fix detect update failure issues, closed #104
Browse files Browse the repository at this point in the history
  • Loading branch information
Haleydu committed Sep 11, 2020
1 parent 38d45a2 commit c1cd49c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/hiroshi/cimoc/core/Manga.java
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ public void call(Subscriber<? super Comic> subscriber) {
.readTimeout(1500, TimeUnit.MILLISECONDS)
.build();
for (Comic comic : list) {
Parser parser = manager.getParser(comic.getSource());
Request request = parser.getCheckRequest(comic.getCid());
try {
Parser parser = manager.getParser(comic.getSource());
Request request = parser.getCheckRequest(comic.getCid());
String update = parser.parseCheck(getResponseBody(client, request));
if (comic.getUpdate() != null && update != null && !comic.getUpdate().equals(update)) {
comic.setFavorite(System.currentTimeMillis());
Expand Down

0 comments on commit c1cd49c

Please sign in to comment.