Fix #4772: custom host not working on gpodnet sync
This commit is contained in:
parent
f40785dcce
commit
f2942033e6
|
@ -80,7 +80,7 @@ public class SyncService extends Worker {
|
|||
if (!GpodnetPreferences.loggedIn()) {
|
||||
return Result.success();
|
||||
}
|
||||
syncServiceImpl = new GpodnetService(AntennapodHttpClient.getHttpClient(), GpodnetService.DEFAULT_BASE_HOST);
|
||||
syncServiceImpl = new GpodnetService(AntennapodHttpClient.getHttpClient(), GpodnetPreferences.getHostname());
|
||||
SharedPreferences.Editor prefs = getApplicationContext().getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE)
|
||||
.edit();
|
||||
prefs.putLong(PREF_LAST_SYNC_ATTEMPT_TIMESTAMP, System.currentTimeMillis()).apply();
|
||||
|
|
Loading…
Reference in New Issue