add option to disable playhead updates/reporting

This commit is contained in:
2022-03-20 12:38:49 +01:00
parent cd4cfb7a0c
commit 72280f29d8
7 changed files with 98 additions and 1 deletions

View File

@ -500,6 +500,12 @@ object Crunchyroll {
}
}
/**
* Post the playhead to crunchy (playhead position,watched state)
*
* @param episodeId A episode ID as strings.
* @param playhead The episodes playhead in seconds.
*/
suspend fun postPlayheads(episodeId: String, playhead: Int) {
val playheadsEndpoint = "/content/v1/playheads/$accountID"
val parameters = listOf("locale" to Preferences.preferredLocale.toLanguageTag())