fix(en/putlocker): Fix empty title and add 360p preference value (#3015)
This commit is contained in:
parent
40811bc0eb
commit
1d8de9db58
@ -1,7 +1,7 @@
|
|||||||
ext {
|
ext {
|
||||||
extName = 'PutLocker'
|
extName = 'PutLocker'
|
||||||
extClass = '.PutLocker'
|
extClass = '.PutLocker'
|
||||||
extVersionCode = 4
|
extVersionCode = 5
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
@ -74,7 +74,7 @@ class PutLocker : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
|||||||
override fun latestUpdatesRequest(page: Int): Request =
|
override fun latestUpdatesRequest(page: Int): Request =
|
||||||
GET("$baseUrl/filter/$page?genre=all&country=all&types=all&year=all&sort=updated")
|
GET("$baseUrl/filter/$page?genre=all&country=all&types=all&year=all&sort=updated")
|
||||||
|
|
||||||
override fun latestUpdatesSelector(): String = "div.movies-list > div.ml-item > div.mli-poster"
|
override fun latestUpdatesSelector(): String = "div.movies-list > div.ml-item"
|
||||||
|
|
||||||
override fun latestUpdatesNextPageSelector(): String = "div#pagination li.active ~ li"
|
override fun latestUpdatesNextPageSelector(): String = "div#pagination li.active ~ li"
|
||||||
|
|
||||||
@ -257,8 +257,8 @@ class PutLocker : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
|||||||
val videoQualityPref = ListPreference(screen.context).apply {
|
val videoQualityPref = ListPreference(screen.context).apply {
|
||||||
key = "preferred_quality"
|
key = "preferred_quality"
|
||||||
title = "Preferred quality"
|
title = "Preferred quality"
|
||||||
entries = arrayOf("1080p", "720p", "480p")
|
entries = arrayOf("1080p", "720p", "480p", "360p")
|
||||||
entryValues = arrayOf("1080", "720", "480")
|
entryValues = arrayOf("1080", "720", "480", "360")
|
||||||
setDefaultValue("1080")
|
setDefaultValue("1080")
|
||||||
summary = "%s"
|
summary = "%s"
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ class PutServerExtractor(private val client: OkHttpClient) {
|
|||||||
|
|
||||||
val playerResp = client.newCall(GET(embedUrl, referer)).execute().asJsoup()
|
val playerResp = client.newCall(GET(embedUrl, referer)).execute().asJsoup()
|
||||||
val player = playerResp.select("div#player")
|
val player = playerResp.select("div#player")
|
||||||
val vidId = "\"" + player.attr("data-id") + "\""
|
val vidId = "\"${player.attr("data-id")}\""
|
||||||
val vidHash = player.attr("data-hash")
|
val vidHash = player.attr("data-hash")
|
||||||
val cipher = CryptoAES.encrypt(vidHash, vidId)
|
val cipher = CryptoAES.encrypt(vidHash, vidId)
|
||||||
val vidUrl = "$embedHost/ajax/getSources/".toHttpUrl().newBuilder()
|
val vidUrl = "$embedHost/ajax/getSources/".toHttpUrl().newBuilder()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user