We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94cf7a1 commit 5a9aad7Copy full SHA for 5a9aad7
src/main/java/pw/mihou/amelia/io/rome/RssReader.kt
@@ -6,6 +6,7 @@ import org.w3c.dom.NodeList
6
import pw.mihou.amelia.Amelia
7
import pw.mihou.amelia.io.xml.SimpleXmlClient
8
import pw.mihou.amelia.logger
9
+import java.time.Instant
10
import java.util.Date
11
import java.util.concurrent.TimeUnit
12
@@ -31,7 +32,7 @@ object RssReader {
31
32
val lastBuildDate = document.getElementsByTagName("lastBuildDate").item(0)
33
if (lastBuildDate.textContent == "") {
34
logger.warn("$url has no last build date.")
- return null
35
+ return Date.from(Instant.now()) to emptyList()
36
}
37
Amelia.formatter.parse(lastBuildDate.textContent) to nodeListToFeedItems(document.getElementsByTagName("item"))
38
} catch (exception: Exception) {
0 commit comments