mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
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
|
||||||
val newTrailers = loadExtractor(trailerUrl, referer)
|
try {
|
||||||
addTrailer(newTrailers)
|
val newTrailers = loadExtractor(trailerUrl, referer)
|
||||||
|
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