Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wushuo894 committed Nov 28, 2024
1 parent 49acca9 commit 161682c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main/java/ani/rss/util/UpdateUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,12 @@ public static About about() {
String downloadUrl = StrFormatter.format("https://github.com/wushuo894/ani-rss/releases/download/v{}/{}", latest, filename);
about.setDownloadUrl(downloadUrl);

Element relativeTime = box.selectFirst("relative-time");
String datetime = relativeTime.attr("datetime");
about.setDate(DateUtil.parse(datetime));
try {
Element relativeTime = box.selectFirst("relative-time");
String datetime = relativeTime.attr("datetime");
about.setDate(DateUtil.parse(datetime));
} catch (Exception ignored) {
}
});
} catch (Exception e) {
String message = ExceptionUtil.getMessage(e);
Expand Down

0 comments on commit 161682c

Please sign in to comment.