forked from recloudstream/cloudstream
minifix
This commit is contained in:
parent
b433e753a1
commit
efa7623495
1 changed files with 6 additions and 2 deletions
|
@ -901,8 +901,12 @@ interface LoadResponse {
|
||||||
/**better to call addTrailer with mutible trailers directly instead of calling this multiple times*/
|
/**better to call addTrailer with mutible trailers directly instead of calling this multiple times*/
|
||||||
suspend fun LoadResponse.addTrailer(trailerUrl: String?, referer: String? = null) {
|
suspend fun LoadResponse.addTrailer(trailerUrl: String?, referer: String? = null) {
|
||||||
if (trailerUrl == null) return
|
if (trailerUrl == null) return
|
||||||
|
try {
|
||||||
val newTrailers = loadExtractor(trailerUrl, referer)
|
val newTrailers = loadExtractor(trailerUrl, referer)
|
||||||
addTrailer(newTrailers)
|
addTrailer(newTrailers)
|
||||||
|
} catch (e: Exception) {
|
||||||
|
logError(e)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun LoadResponse.addTrailer(newTrailers: List<ExtractorLink>) {
|
fun LoadResponse.addTrailer(newTrailers: List<ExtractorLink>) {
|
||||||
|
|
Loading…
Reference in a new issue