Update dependencies and some linting (#1631)

This commit is contained in:
jmir1
2023-05-21 18:42:23 +02:00
committed by GitHub
parent 60eb7a9262
commit 3a8120cb59
161 changed files with 982 additions and 1003 deletions

View File

@ -41,7 +41,7 @@ class GdrivePlayerExtractor(private val client: OkHttpClient) {
.distinctBy { it.groupValues[2] } // remove duplicates by quality
.map {
val qualityStr = it.groupValues[2]
val quality = "$PLAYER_NAME ${qualityStr}p - $name"
val quality = "$playerName ${qualityStr}p - $name"
val videoUrl = "https:" + it.groupValues[1] + "&res=$qualityStr"
Video(videoUrl, quality, videoUrl, subtitleTracks = subtitleList)
}.toList()
@ -58,7 +58,7 @@ class GdrivePlayerExtractor(private val client: OkHttpClient) {
}
companion object {
private const val PLAYER_NAME = "GDRIVE"
private const val playerName = "GDRIVE"
private val REGEX_DATAJSON = Regex("data=\"(\\S+?)\";")
private val REGEX_PASSWORD = Regex("var pass = \"(\\S+?)\"")