diff --git a/leanback/src/main/java/de/nicidienase/chaosflix/leanback/detail/ChaosflixSeekDataProvider.kt b/leanback/src/main/java/de/nicidienase/chaosflix/leanback/detail/ChaosflixSeekDataProvider.kt index b7d8c47c..29e77026 100644 --- a/leanback/src/main/java/de/nicidienase/chaosflix/leanback/detail/ChaosflixSeekDataProvider.kt +++ b/leanback/src/main/java/de/nicidienase/chaosflix/leanback/detail/ChaosflixSeekDataProvider.kt @@ -28,7 +28,7 @@ class ChaosflixSeekDataProvider( private val scope = CoroutineScope(Dispatchers.IO + Job()) - private var canceled = false + private var canceled = true private var generateThumbsJob: Job? = null private val mediaMetadataRetriever = MediaMetadataRetriever() @@ -36,11 +36,6 @@ class ChaosflixSeekDataProvider( private val thumbnails: MutableMap = mutableMapOf() private val dummyThumbnails: MutableMap = mutableMapOf() - init { - mediaMetadataRetriever.setDataSource(url, mapOf("User-Agent" to ApiFactory.buildUserAgent())) - generateThumbs() - } - private val positions: LongArray by lazy { val list = mutableListOf() for (i in 0..(length * 1000) step calculateInterval(length)) {