feat(src/fr) New source: Anime-Sama (#1984)

This commit is contained in:
hollow
2023-08-02 16:38:07 +00:00
committed by GitHub
parent 8807b3ae5a
commit 7a16661124
14 changed files with 428 additions and 5 deletions

View File

@ -9,7 +9,7 @@ import okhttp3.OkHttpClient
class SibnetExtractor(private val client: OkHttpClient) {
fun videosFromUrl(url: String): List<Video> {
fun videosFromUrl(url: String, prefix: String = ""): List<Video> {
val videoList = mutableListOf<Video>()
val document = client.newCall(
@ -31,7 +31,7 @@ class SibnetExtractor(private val client: OkHttpClient) {
)
videoList.add(
Video(videoUrl, "Sibnet", videoUrl, headers = videoHeaders),
Video(videoUrl, "${prefix}Sibnet", videoUrl, headers = videoHeaders),
)
return videoList