summaryrefslogtreecommitdiff
path: root/net/download
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2024-03-02 09:50:24 +0100
committerGitHub <noreply@github.com>2024-03-02 09:50:24 +0100
commitee99ef934c131e5c75682c47129dd172a2203793 (patch)
treeb48aa5f68d199fc96d95f15fd41f98af1009bfcf /net/download
parentfa9dd8cb5a14ffb341d4af63535d4b9838bb0cdd (diff)
downloadAntennaPod-ee99ef934c131e5c75682c47129dd172a2203793.zip
Remove FeedComponent and FeedFile class (#6949)
We want to be more flexible in what we store for each type of item. Also rename misleading function (lastUpdate to lastModified)
Diffstat (limited to 'net/download')
-rw-r--r--net/download/service-interface/src/main/java/de/danoeh/antennapod/net/download/serviceinterface/DownloadRequest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/download/service-interface/src/main/java/de/danoeh/antennapod/net/download/serviceinterface/DownloadRequest.java b/net/download/service-interface/src/main/java/de/danoeh/antennapod/net/download/serviceinterface/DownloadRequest.java
index 962ecfc84..f789fda5c 100644
--- a/net/download/service-interface/src/main/java/de/danoeh/antennapod/net/download/serviceinterface/DownloadRequest.java
+++ b/net/download/service-interface/src/main/java/de/danoeh/antennapod/net/download/serviceinterface/DownloadRequest.java
@@ -252,7 +252,7 @@ public class DownloadRequest implements Parcelable {
this.source = UrlChecker.prepareUrl(media.getDownload_url());
this.title = media.getHumanReadableIdentifier();
this.feedfileId = media.getId();
- this.feedfileType = media.getTypeAsInt();
+ this.feedfileType = FeedMedia.FEEDFILETYPE_FEEDMEDIA;
}
public Builder(@NonNull String destination, @NonNull Feed feed) {
@@ -260,7 +260,7 @@ public class DownloadRequest implements Parcelable {
this.source = feed.isLocalFeed() ? feed.getDownload_url() : UrlChecker.prepareUrl(feed.getDownload_url());
this.title = feed.getHumanReadableIdentifier();
this.feedfileId = feed.getId();
- this.feedfileType = feed.getTypeAsInt();
+ this.feedfileType = Feed.FEEDFILETYPE_FEED;
arguments.putInt(REQUEST_ARG_PAGE_NR, feed.getPageNr());
}