remove useless functions
This commit is contained in:
@ -5,7 +5,7 @@ ext {
|
||||
extName = 'Oploverz'
|
||||
pkgNameSuffix = 'id.oploverz'
|
||||
extClass = '.Oploverz'
|
||||
extVersionCode = 1
|
||||
extVersionCode = 2
|
||||
libVersion = '12'
|
||||
}
|
||||
|
||||
|
@ -149,11 +149,6 @@ class Oploverz : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
||||
|
||||
override fun videoUrlParse(document: Document) = throw Exception("not used")
|
||||
|
||||
override fun videoListParse(response: Response): List<Video> {
|
||||
val document = response.asJsoup()
|
||||
return document.select(videoListSelector()).ordered().map { videoFromElement(it) }
|
||||
}
|
||||
|
||||
override fun List<Video>.sort(): List<Video> {
|
||||
val quality = preferences.getString("preferred_quality", null)
|
||||
if (quality != null) {
|
||||
|
@ -5,7 +5,7 @@ ext {
|
||||
extName = 'OtakuDesu'
|
||||
pkgNameSuffix = 'id.otakudesu'
|
||||
extClass = '.OtakuDesu'
|
||||
extVersionCode = 3
|
||||
extVersionCode = 4
|
||||
libVersion = '12'
|
||||
}
|
||||
|
||||
|
@ -193,21 +193,6 @@ class OtakuDesu : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
||||
return AnimesPage(animes, hasNextPage)
|
||||
}
|
||||
|
||||
override fun videoListParse(response: Response): List<Video> {
|
||||
val document = response.asJsoup()
|
||||
return document.select(videoListSelector()).ordered().map { videoFromElement(it) }
|
||||
}
|
||||
|
||||
private fun Elements.ordered(): Elements {
|
||||
val newElements = Elements()
|
||||
var zipEle = 0
|
||||
for (element in this) {
|
||||
newElements.add(zipEle, element)
|
||||
zipEle++
|
||||
}
|
||||
return newElements
|
||||
}
|
||||
|
||||
override fun videoListSelector() = "div.download > ul > li > a:nth-child(2)"
|
||||
|
||||
override fun List<Video>.sort(): List<Video> {
|
||||
|
Reference in New Issue
Block a user