File tree Expand file tree Collapse file tree
app/src/main/java/com/lagradost/cloudstream3/syncproviders Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,8 +38,10 @@ import com.lagradost.cloudstream3.utils.AppContextUtils.splitQuery
3838import com.lagradost.cloudstream3.utils.DataStoreHelper
3939import com.lagradost.cloudstream3.utils.UiText
4040import com.lagradost.cloudstream3.utils.txt
41+ import kotlinx.serialization.ExperimentalSerializationApi
4142import kotlinx.serialization.SerialName
4243import kotlinx.serialization.Serializable
44+ import kotlinx.serialization.json.JsonNames
4345import java.net.URL
4446import java.security.SecureRandom
4547import java.util.Date
@@ -86,6 +88,7 @@ data class AuthToken(
8688 refreshTokenLifetime != null && (System .currentTimeMillis() / 1000 ) + marginSec >= refreshTokenLifetime
8789}
8890
91+ @OptIn(ExperimentalSerializationApi ::class ) // JsonNames is an experimental annotation for now
8992@Serializable
9093data class AuthUser (
9194 /* * Account display-name, can also be email if name does not exist */
@@ -101,7 +104,7 @@ data class AuthUser(
101104 @SerialName(" profilePicture" )
102105 val profilePicture : String? = null ,
103106 /* * Profile picture Headers of the URL */
104- @SerialName(" profilePictureHeader" )
107+ @SerialName(" profilePictureHeaders " ) @JsonNames( " profilePictureHeader" )
105108 val profilePictureHeaders : Map <String , String >? = null ,
106109)
107110
You can’t perform that action at this time.
0 commit comments