[skip ci] refactor: Make extensions use the dailymotion-extractor lib (#2160)
This commit is contained in:
@ -34,7 +34,7 @@ class DailymotionExtractor(private val client: OkHttpClient, private val headers
|
||||
|
||||
private val playlistUtils by lazy { PlaylistUtils(client, headers) }
|
||||
|
||||
fun videosFromUrl(url: String, prefix: String, baseUrl: String = "", password: String? = null): List<Video> {
|
||||
fun videosFromUrl(url: String, prefix: String = "Dailymotion - ", baseUrl: String = "", password: String? = null): List<Video> {
|
||||
val htmlString = client.newCall(GET(url)).execute().use { it.body.string() }
|
||||
|
||||
val internalData = htmlString.substringAfter("\"dmInternalData\":").substringBefore("</script>")
|
||||
|
Reference in New Issue
Block a user