From 90033b7537dbcab659ac9a7928d667fb210c2f4a Mon Sep 17 00:00:00 2001 From: thrillfall Date: Mon, 23 Aug 2021 02:43:27 +0200 Subject: add property guid to episode action synchronization payload --- .../main/java/de/danoeh/antennapod/net/sync/model/EpisodeAction.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'net/sync') 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) { -- cgit v1.2.3