Skip to content

Commit

Permalink
Added TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmalloy committed Jul 21, 2023
1 parent 13b08ac commit 280254a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/jasper/component/WebScraper.java
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@ private void addWeakThumbnail(Ref ref, String url) {

private void addThumbnailUrl(Ref ref, String url) {
if (url.endsWith(".com") || url.endsWith(".m3u8")) return;
// TODO: Fallback if image can't load
addPluginUrl(ref, "plugin/thumbnail", url);
}

Expand Down Expand Up @@ -684,6 +685,8 @@ public void drainAsyncScrape() {

@Scheduled(fixedDelay = 5, timeUnit = TimeUnit.MINUTES)
public void clearFailed() {
// TODO: Not cluster safe
// TODO: Make this run on a fixed interval regardless of how many instances are running
webRepository.deleteAllByDataIsNullAndMimeIsNull();
}

Expand Down

0 comments on commit 280254a

Please sign in to comment.