diff options
author | Tony Tam <149837+tonytamsf@users.noreply.github.com> | 2022-03-06 07:09:09 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-06 16:09:09 +0100 |
commit | 1a1bf02e8a73a3f7a05ced5c850c23fceb2629f0 (patch) | |
tree | 9d8fe03ef4432ead9874f696a3e9ca89e2cd80f2 /model/src/main | |
parent | dad4e405d48c13ec3c3ab90700b3969795778d3f (diff) | |
download | AntennaPod-1a1bf02e8a73a3f7a05ced5c850c23fceb2629f0.zip |
Support for podcast 2.0 chapters (#5630)
Diffstat (limited to 'model/src/main')
-rw-r--r-- | model/src/main/java/de/danoeh/antennapod/model/feed/FeedItem.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/model/src/main/java/de/danoeh/antennapod/model/feed/FeedItem.java b/model/src/main/java/de/danoeh/antennapod/model/feed/FeedItem.java index 08f79252a..a8570ea4e 100644 --- a/model/src/main/java/de/danoeh/antennapod/model/feed/FeedItem.java +++ b/model/src/main/java/de/danoeh/antennapod/model/feed/FeedItem.java @@ -41,6 +41,7 @@ public class FeedItem extends FeedComponent implements Serializable { private transient Feed feed; private long feedId; + private String podcastIndexChapterUrl; private int state; public static final int NEW = -1; @@ -81,7 +82,7 @@ public class FeedItem extends FeedComponent implements Serializable { * */ public FeedItem(long id, String title, String link, Date pubDate, String paymentLink, long feedId, boolean hasChapters, String imageUrl, int state, - String itemIdentifier, long autoDownload) { + String itemIdentifier, long autoDownload, String podcastIndexChapterUrl) { this.id = id; this.title = title; this.link = link; @@ -93,6 +94,7 @@ public class FeedItem extends FeedComponent implements Serializable { this.state = state; this.itemIdentifier = itemIdentifier; this.autoDownload = autoDownload; + this.podcastIndexChapterUrl = podcastIndexChapterUrl; } /** @@ -157,6 +159,9 @@ public class FeedItem extends FeedComponent implements Serializable { chapters = other.chapters; } } + if (other.podcastIndexChapterUrl != null) { + podcastIndexChapterUrl = other.podcastIndexChapterUrl; + } } /** @@ -427,6 +432,14 @@ public class FeedItem extends FeedComponent implements Serializable { tags.remove(tag); } + public String getPodcastIndexChapterUrl() { + return podcastIndexChapterUrl; + } + + public void setPodcastIndexChapterUrl(String url) { + podcastIndexChapterUrl = url; + } + @NonNull @Override public String toString() { |