diff options
author | s3lph <5564491+s3lph@users.noreply.github.com> | 2020-12-28 03:44:41 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2020-12-30 16:01:24 +0100 |
commit | f2942033e6a25b5e4c68afb9e1cfdc4c5ac26096 (patch) | |
tree | 042692c0eaaebaccaca25fb47c4617f2ac2dafbe /core/src/main | |
parent | f40785dcceddb3e51515f6796beaf68d6acdd3fd (diff) | |
download | AntennaPod-f2942033e6a25b5e4c68afb9e1cfdc4c5ac26096.zip |
Fix #4772: custom host not working on gpodnet sync
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/sync/SyncService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/sync/SyncService.java b/core/src/main/java/de/danoeh/antennapod/core/sync/SyncService.java index 1f5d9b75f..0392da4e6 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/sync/SyncService.java +++ b/core/src/main/java/de/danoeh/antennapod/core/sync/SyncService.java @@ -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(); |