Added support for feeds without pubDates

This commit is contained in:
daniel oeh 2012-10-22 21:22:38 +02:00
parent dbfd1fca26
commit 124f7bd0f6
1 changed files with 2 additions and 2 deletions

View File

@ -632,11 +632,11 @@ public class DownloadService extends Service {
return false;
}
if (item.getPubDate() == null) {
Log.e(TAG, "Item has no pubDate");
Log.e(TAG, "Item has no pubDate. Using current time as pubDate");
if (item.getTitle() != null) {
Log.e(TAG, "Title of invalid item: " + item.getTitle());
}
return false;
item.setPubDate(new Date());
}
}
return true;