mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
918136f8f0
* [Feature][WIP] Add option to download subtitles from Opensubtitles.org (#1082) Co-authored-by: Jace <54625750+Jacekun@users.noreply.github.com> Co-authored-by: Jace <jaceorwell@gmail.com> Co-authored-by: LagradOst <11805592+LagradOst@users.noreply.github.com>
23 lines
No EOL
490 B
Kotlin
23 lines
No EOL
490 B
Kotlin
package com.lagradost.cloudstream3.syncproviders
|
|
|
|
interface AuthAPI {
|
|
val name: String
|
|
val icon: Int?
|
|
|
|
val requiresLogin: Boolean
|
|
|
|
val createAccountUrl : String?
|
|
|
|
// don't change this as all keys depend on it
|
|
val idPrefix: String
|
|
|
|
// if this returns null then you are not logged in
|
|
fun loginInfo(): LoginInfo?
|
|
fun logOut()
|
|
|
|
class LoginInfo(
|
|
val profilePicture: String? = null,
|
|
val name: String?,
|
|
val accountIndex: Int,
|
|
)
|
|
} |