summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorthrillfall <thrillfall@users.noreply.github.com>2021-08-23 02:43:27 +0200
committerthrillfall <thrillfall@users.noreply.github.com>2021-08-25 22:51:53 +0200
commit90033b7537dbcab659ac9a7928d667fb210c2f4a (patch)
tree477c8aed00484de29373f6f4cf0f1349379433f2 /net
parenteacc90af299220c60fd504ef7970775aa344b44c (diff)
downloadantennapod-90033b7537dbcab659ac9a7928d667fb210c2f4a.zip
add property guid to episode action synchronization payload
Diffstat (limited to 'net')
-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) {