projects
/
rhynodge.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
🎨 Replace QC watcher with Kotlin version
[rhynodge.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
rhynodge
/
filters
/
comics
/
CyanideAndHappinessComicFilter.java
diff --git
a/src/main/java/net/pterodactylus/rhynodge/filters/comics/CyanideAndHappinessComicFilter.java
b/src/main/java/net/pterodactylus/rhynodge/filters/comics/CyanideAndHappinessComicFilter.java
index
8cceb5c
..
f8d116f
100644
(file)
--- a/
src/main/java/net/pterodactylus/rhynodge/filters/comics/CyanideAndHappinessComicFilter.java
+++ b/
src/main/java/net/pterodactylus/rhynodge/filters/comics/CyanideAndHappinessComicFilter.java
@@
-17,6
+17,9
@@
package net.pterodactylus.rhynodge.filters.comics;
package net.pterodactylus.rhynodge.filters.comics;
+import static com.google.common.base.Optional.absent;
+import static com.google.common.base.Optional.of;
+
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
@@
-42,7
+45,7
@@
public class CyanideAndHappinessComicFilter extends ComicSiteFilter {
@Override
protected Optional<String> extractTitle(Document document) {
@Override
protected Optional<String> extractTitle(Document document) {
- return
Optional.absent(
);
+ return
extractImageUrls(document).isEmpty() ? absent() : of(""
);
}
@Override
}
@Override