Package-level declarations

Types

Link copied to clipboard
object AniSkip
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object AppUtils
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object CastHelper
Link copied to clipboard
Link copied to clipboard
object Coroutines
Link copied to clipboard
object DataStore
Link copied to clipboard
Link copied to clipboard
class DownloadFileWorkManager(val context: Context, workerParams: <Error class: unknown class>)
Link copied to clipboard
Link copied to clipboard
data class Editor(val editor: SharedPreferences.Editor)

When inserting many keys use this function, this is because apply for every key is very expensive on memory

Link copied to clipboard
Link copied to clipboard
class Event<T>
Link copied to clipboard
abstract class ExtractorApi
Link copied to clipboard
open class ExtractorLink(val source: String, val name: String, val url: String, val referer: String, val quality: Int, val headers: Map<String, String> = mapOf(), val extractorData: String? = null, val type: ExtractorLinkType) : IDownloadableMinimum
Link copied to clipboard
data class ExtractorLinkPlayList(val source: String, val name: String, val playlist: List<PlayListItem>, val referer: String, val quality: Int, val headers: Map<String, String> = mapOf(), val extractorData: String? = null, val type: ExtractorLinkType) : ExtractorLink

If your site has an unorthodox m3u8-like system where there are multiple smaller videos concatenated use this.

Link copied to clipboard

Metadata about the file type used for downloads and exoplayer hint, if you respond with the wrong one the file will fail to download or be played

Link copied to clipboard
Link copied to clipboard
interface IDisposable
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class JsHunter(hunterJS: String)
Link copied to clipboard
class JsUnpacker(packedJS: String?)
Link copied to clipboard

backwards api surface

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class PlayListItem(val url: String, val durationUs: Long)

For use in the ConcatenatingMediaSource. If features are missing (headers), please report and we can add it.

Link copied to clipboard
class PreferenceDelegate<T : Any>(val key: String, val default: T)
Link copied to clipboard
Link copied to clipboard
object ShortLink
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object SyncUtil
Link copied to clipboard
Link copied to clipboard
object UIHelper
Link copied to clipboard
sealed class UiImage
Link copied to clipboard
sealed class UiText
Link copied to clipboard
class UserPreferenceDelegate<T : Any>(key: String, default: T)
Link copied to clipboard
data class Vector2(val x: Float, val y: Float)
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

UUID for the ClearKey DRM scheme.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

UUID for the PlayReady DRM scheme.

Link copied to clipboard
Link copied to clipboard
const val RESULT_DUB: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val schemaStripRegex: <Error class: unknown class>

Removes https:// and www. To match urls regardless of schema, perhaps Uri() can be used?

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

UUID for the Widevine DRM scheme.

Functions

Link copied to clipboard
Link copied to clipboard
fun getAndUnpack(string: String): String
Link copied to clipboard
fun getPacked(string: String): String?
Link copied to clipboard
suspend fun getPostForm(requestUrl: String, html: String): String?
Link copied to clipboard
fun getQualityFromName(qualityName: String?): Int
Link copied to clipboard
inline fun <T> Intent.getSafeParcelableExtra(key: String): T?
Link copied to clipboard
Link copied to clipboard
suspend fun loadExtractor(url: String, subtitleCallback: (SubtitleFile) -> Unit, callback: (ExtractorLink) -> Unit): Boolean

suspend fun loadExtractor(url: String, referer: String? = null, subtitleCallback: (SubtitleFile) -> Unit, callback: (ExtractorLink) -> Unit): Boolean

Tries to load the appropriate extractor based on link, returns true if any extractor is loaded.

Link copied to clipboard
Link copied to clipboard
actual fun runOnMainThreadNative(work: () -> Unit)
expect fun runOnMainThreadNative(work: () -> Unit)
Link copied to clipboard
fun TextView?.setText(text: UiText?)
Link copied to clipboard
Link copied to clipboard
fun Long.toUs(): Long

Converts Seconds to MicroSeconds, multiplication by 1_000_000

Link copied to clipboard
fun txt(value: String): UiText
fun txt(value: String?): UiText?
fun txt(resId: Int, vararg args: Any): UiText
fun txt(resId: Int?, vararg args: Any?): UiText?
Link copied to clipboard
suspend fun unshortenLinkSafe(url: String): String