summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2021-08-27 18:49:24 +0200
committerGitHub <noreply@github.com>2021-08-27 18:49:24 +0200
commitc1b23dd19d3b0d6f8489aaf2a2747b81ba5498ee (patch)
tree477c8aed00484de29373f6f4cf0f1349379433f2
parenteacc90af299220c60fd504ef7970775aa344b44c (diff)
parent90033b7537dbcab659ac9a7928d667fb210c2f4a (diff)
downloadAntennaPod-c1b23dd19d3b0d6f8489aaf2a2747b81ba5498ee.zip
Merge pull request #5356 from thrillfall/sync-with-guid
add property guid to episode action synchronization payload
-rw-r--r--net/sync/model/src/main/java/de/danoeh/antennapod/net/sync/model/EpisodeAction.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/sync/model/src/main/java/de/danoeh/antennapod/net/sync/model/EpisodeAction.java b/net/sync/model/src/main/java/de/danoeh/antennapod/net/sync/model/EpisodeAction.java
index cf4744c3e..da398d83e 100644
--- a/net/sync/model/src/main/java/de/danoeh/antennapod/net/sync/model/EpisodeAction.java
+++ b/net/sync/model/src/main/java/de/danoeh/antennapod/net/sync/model/EpisodeAction.java
@@ -5,7 +5,7 @@ import android.util.Log;
import androidx.annotation.NonNull;
import androidx.core.util.ObjectsCompat;
-import de.danoeh.antennapod.model.feed.FeedItem;
+
import org.json.JSONException;
import org.json.JSONObject;
@@ -15,6 +15,8 @@ import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
+import de.danoeh.antennapod.model.feed.FeedItem;
+
public class EpisodeAction {
private static final String TAG = "EpisodeAction";
private static final String PATTERN_ISO_DATEFORMAT = "yyyy-MM-dd'T'HH:mm:ss";
@@ -238,6 +240,7 @@ public class EpisodeAction {
public Builder(FeedItem item, Action action) {
this(item.getFeed().getDownload_url(), item.getMedia().getDownload_url(), action);
+ this.guid(item.getItemIdentifier());
}
public Builder(String podcast, String episode, Action action) {