parent
925e50d120
commit
57bbef431b
|
@ -1,7 +1,7 @@
|
||||||
ext {
|
ext {
|
||||||
extName = 'Oppai Stream'
|
extName = 'Oppai Stream'
|
||||||
extClass = '.OppaiStream'
|
extClass = '.OppaiStream'
|
||||||
extVersionCode = 2
|
extVersionCode = 3
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@ import okhttp3.Response
|
||||||
import org.jsoup.nodes.Document
|
import org.jsoup.nodes.Document
|
||||||
import org.jsoup.nodes.Element
|
import org.jsoup.nodes.Element
|
||||||
import rx.Observable
|
import rx.Observable
|
||||||
|
import java.net.URLDecoder
|
||||||
import java.util.Calendar
|
import java.util.Calendar
|
||||||
|
|
||||||
class OppaiStream : ParsedHttpSource() {
|
class OppaiStream : ParsedHttpSource() {
|
||||||
|
@ -115,7 +116,13 @@ class OppaiStream : ParsedHttpSource() {
|
||||||
return SManga.create().apply {
|
return SManga.create().apply {
|
||||||
thumbnail_url = element.select("img.read-cover").attr("src")
|
thumbnail_url = element.select("img.read-cover").attr("src")
|
||||||
title = element.select("h3.man-title").text()
|
title = element.select("h3.man-title").text()
|
||||||
setUrlWithoutDomain(element.absUrl("href"))
|
val rawUrl = element.absUrl("href")
|
||||||
|
val url = if (rawUrl.contains("/fw?to=")) {
|
||||||
|
URLDecoder.decode(rawUrl.substringAfter("/fw?to="), "UTF-8")
|
||||||
|
} else {
|
||||||
|
rawUrl
|
||||||
|
}
|
||||||
|
setUrlWithoutDomain(url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue