diff --git a/Kinoger/src/main/kotlin/com/ne1work/Kinoger.kt b/Kinoger/src/main/kotlin/com/ne1work/Kinoger.kt index fa1af9b2..c2a01773 100644 --- a/Kinoger/src/main/kotlin/com/ne1work/Kinoger.kt +++ b/Kinoger/src/main/kotlin/com/ne1work/Kinoger.kt @@ -128,8 +128,7 @@ class Kinoger : MainAPI() { ) { loadExtractor(url, referer, subtitleCallback) { link -> if(link.quality == Qualities.Unknown.value) { - callback.invoke( - ExtractorLink( + val newLink = ExtractorLink( link.source, link.name, link.url, @@ -141,8 +140,10 @@ class Kinoger : MainAPI() { link.type, link.headers, link.extractorData - ) - ) + ) + callback(newLink) + } else { + callback(link) } } }