OpenSubtitlesApi

Constructors

Link copied to clipboard
constructor(index: Int)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class OAuthToken(var token: String? = null, var status: Int? = null)
Link copied to clipboard
data class ResultAttributes(var subtitleId: String? = null, var language: String? = null, var release: String? = null, var url: String? = null, var files: List<OpenSubtitlesApi.ResultFiles>? = listOf(), var featDetails: OpenSubtitlesApi.ResultFeatureDetails? = ResultFeatureDetails(), var hearingImpaired: Boolean? = null)
Link copied to clipboard
data class ResultData(var id: String? = null, var type: String? = null, var attributes: OpenSubtitlesApi.ResultAttributes? = ResultAttributes())
Link copied to clipboard
data class ResultDownloadLink(var link: String? = null, var fileName: String? = null, var requests: Int? = null, var remaining: Int? = null, var message: String? = null, var resetTime: String? = null, var resetTimeUtc: String? = null)
Link copied to clipboard
data class ResultFeatureDetails(var year: Int? = null, var title: String? = null, var movieName: String? = null, var imdbId: Int? = null, var tmdbId: Int? = null, var seasonNumber: Int? = null, var episodeNumber: Int? = null, var parentImdbId: Int? = null, var parentTitle: String? = null, var parentTmdbId: Int? = null, var parentFeatureId: Int? = null)
Link copied to clipboard
data class ResultFiles(var fileId: Int? = null, var fileName: String? = null)
Link copied to clipboard
data class Results(var data: List<OpenSubtitlesApi.ResultData>? = listOf())
Link copied to clipboard
data class SubtitleOAuthEntity(var user: String, var pass: String, var accessToken: String)

Properties

Link copied to clipboard
Link copied to clipboard
open override val createAccountUrl: String
Link copied to clipboard
open override val icon: <Error class: unknown class>
Link copied to clipboard
open override val idPrefix: String
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val requiresEmail: Boolean = false
Link copied to clipboard
open override val requiresLogin: Boolean = true
Link copied to clipboard
open override val requiresPassword: Boolean = true
Link copied to clipboard
open override val requiresServer: Boolean = false
Link copied to clipboard
open override val requiresUsername: Boolean = true
Link copied to clipboard
open override val storesPasswordInPlainText: Boolean = true

Functions

Link copied to clipboard
fun changeAccount(index: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun init()
Link copied to clipboard
open suspend override fun initialize()
Link copied to clipboard
open suspend override fun load(data: AbstractSubtitleEntities.SubtitleEntity): String?
Link copied to clipboard
open suspend override fun login(data: InAppAuthAPI.LoginData): Boolean
Link copied to clipboard
open override fun loginInfo(): AuthAPI.LoginInfo?
Link copied to clipboard
open override fun logOut()
Link copied to clipboard

Fetch subtitles using token authenticated on previous method (see authorize). Returns list of Subtitles which user can select to download (see load).