Fix:Stream sync make sure server url and token exist

This commit is contained in:
advplyr
2021-12-27 16:29:42 -06:00
parent 7331389add
commit 932bc30172
2 changed files with 5 additions and 1 deletions
@@ -111,6 +111,10 @@ class AudiobookProgressSyncer constructor(playerNotificationService:PlayerNotifi
var serverUrl = playerNotificationService.getServerUrl()
var token = playerNotificationService.getUserToken()
if (serverUrl == "" || token == "") {
return
}
Log.d(tag, "Sync Stream $serverUrl | $token")
var url = "$serverUrl/api/syncStream"