Merge pull request #5356 from thrillfall/sync-with-guid

add property guid to episode action synchronization payload
This commit is contained in:
ByteHamster 2021-08-27 18:49:24 +02:00 committed by GitHub
commit c1b23dd19d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {