add property guid to episode action synchronization payload

This commit is contained in:
thrillfall 2021-08-23 02:43:27 +02:00
parent eacc90af29
commit 90033b7537
1 changed files with 4 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import android.util.Log;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.core.util.ObjectsCompat; import androidx.core.util.ObjectsCompat;
import de.danoeh.antennapod.model.feed.FeedItem;
import org.json.JSONException; import org.json.JSONException;
import org.json.JSONObject; import org.json.JSONObject;
@ -15,6 +15,8 @@ import java.util.Date;
import java.util.Locale; import java.util.Locale;
import java.util.TimeZone; import java.util.TimeZone;
import de.danoeh.antennapod.model.feed.FeedItem;
public class EpisodeAction { public class EpisodeAction {
private static final String TAG = "EpisodeAction"; private static final String TAG = "EpisodeAction";
private static final String PATTERN_ISO_DATEFORMAT = "yyyy-MM-dd'T'HH:mm:ss"; 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) { public Builder(FeedItem item, Action action) {
this(item.getFeed().getDownload_url(), item.getMedia().getDownload_url(), action); this(item.getFeed().getDownload_url(), item.getMedia().getDownload_url(), action);
this.guid(item.getItemIdentifier());
} }
public Builder(String podcast, String episode, Action action) { public Builder(String podcast, String episode, Action action) {