summaryrefslogtreecommitdiff
path: root/src/de/podfetcher/storage/DownloadRequester.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/podfetcher/storage/DownloadRequester.java')
-rw-r--r--src/de/podfetcher/storage/DownloadRequester.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/de/podfetcher/storage/DownloadRequester.java b/src/de/podfetcher/storage/DownloadRequester.java
index 6161e7ac3..407555ee0 100644
--- a/src/de/podfetcher/storage/DownloadRequester.java
+++ b/src/de/podfetcher/storage/DownloadRequester.java
@@ -63,7 +63,7 @@ public class DownloadRequester {
}
public void downloadFeed(Context context, Feed feed) {
download(context, feeds, feed.download_url,
- new File(context.getExternalFilesDir(FEED_DOWNLOADPATH), "feed-" + feed.id),
+ new File(getFeedfilePath(id), getFeedfileName(id)),
true, ACTION_FEED_DOWNLOAD_COMPLETED, feed.id);
}
@@ -128,4 +128,12 @@ public class DownloadRequester {
}
return null;
}
+
+ public String getFeedfilePath() {
+ return context.getExternalFilesDir(FEED_DOWNLOADPATH);
+ }
+
+ public String getFeedfileName(long id) {
+ return "feed-" + id;
+ }
}