From e015308b955c3822fe82834bde91c5e84acc0634 Mon Sep 17 00:00:00 2001 From: daniel oeh Date: Sun, 17 Jun 2012 14:24:27 +0200 Subject: [PATCH] File urls with value 'null' are now stored in the database --- src/de/podfetcher/storage/PodDBAdapter.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/de/podfetcher/storage/PodDBAdapter.java b/src/de/podfetcher/storage/PodDBAdapter.java index b1c37112d..90a8cd7b3 100644 --- a/src/de/podfetcher/storage/PodDBAdapter.java +++ b/src/de/podfetcher/storage/PodDBAdapter.java @@ -127,9 +127,7 @@ public class PodDBAdapter { } values.put(KEY_CATEGORY, feed.getCategory().getId()); } - if (feed.getFile_url() != null) { - values.put(KEY_FILE_URL, feed.getFile_url()); - } + values.put(KEY_FILE_URL, feed.getFile_url()); values.put(KEY_DOWNLOAD_URL, feed.getDownload_url()); values.put(KEY_DOWNLOADED, feed.isDownloaded()); values.put(KEY_LASTUPDATE, feed.getLastUpdate().getTime()); @@ -178,9 +176,7 @@ public class PodDBAdapter { values.put(KEY_TITLE, image.getTitle()); values.put(KEY_DOWNLOAD_URL, image.getDownload_url()); values.put(KEY_DOWNLOADED, image.isDownloaded()); - if (image.getFile_url() != null) { - values.put(KEY_FILE_URL, image.getFile_url()); - } + values.put(KEY_FILE_URL, image.getFile_url()); if (image.getId() == 0) { image.setId(db.insert(TABLE_NAME_FEED_IMAGES, null, values)); } else { @@ -205,9 +201,7 @@ public class PodDBAdapter { values.put(KEY_MIME_TYPE, media.getMime_type()); values.put(KEY_DOWNLOAD_URL, media.getDownload_url()); values.put(KEY_DOWNLOADED, media.isDownloaded()); - if (media.getFile_url() != null) { - values.put(KEY_FILE_URL, media.getFile_url()); - } + values.put(KEY_FILE_URL, media.getFile_url()); if (media.getId() == 0) { media.setId(db.insert(TABLE_NAME_FEED_MEDIA, null, values)); } else {