Replacing VidGuardExtractor files in extensions

This commit is contained in:
imper1aldev 2024-09-14 01:12:12 -06:00
parent 7b99310812
commit 8a4093ab8d
18 changed files with 46 additions and 524 deletions

View file

@ -21,7 +21,7 @@ class VidGuardExtractor(private val client: OkHttpClient) {
private val json: Json by injectLazy()
fun videosFromUrl(url: String, prefix: String) = videosFromUrl(url) { "$prefix $it" }
fun videosFromUrl(url: String, prefix: String) = videosFromUrl(url) { "${prefix}VidGuard:$it" }
fun videosFromUrl(url: String, videoNameGen: (String) -> String = { quality -> "VidGuard:$quality" }): List<Video> {
val res = client.newCall(GET(url)).execute().asJsoup()