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
+1 -1
View File
@@ -13,7 +13,7 @@ android {
applicationId "com.audiobookshelf.app"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 54
versionCode 55
versionName "0.9.35-beta"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
aaptOptions {
@@ -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"