bump extensions-lib version

* also update all the `Video` constructors
This commit is contained in:
jmir1
2022-07-26 21:00:57 +02:00
parent 851c74f02a
commit a7eea4d64f
264 changed files with 406 additions and 414 deletions

View File

@ -5,8 +5,8 @@ ext {
extName = 'Onepace'
pkgNameSuffix = 'all.onepace'
extClass = '.OnepaceFactory'
extVersionCode = 3
libVersion = '12'
extVersionCode = 4
libVersion = '13'
containsNsfw = false
}

View File

@ -133,7 +133,7 @@ open class Onepace(override val lang: String, override val name: String) : Confi
val videoId = realUrl.substringAfter("/v/").substringBefore("/file")
val videoName = document.selectFirst("div.center div font+font").text()
val videoUrl = "$hostUrl/d/$videoId/${(timeId.toInt() % 1000) + 11}/${URLEncoder.encode(videoName)}"
return listOf(Video(videoUrl, "ZippyShare", videoUrl, null))
return listOf(Video(videoUrl, "ZippyShare", videoUrl))
}
override fun videoListSelector() = throw Exception("not used")