r7426 - dumbhippo/trunk/server/src/com/dumbhippo/services
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r7426 - dumbhippo/trunk/server/src/com/dumbhippo/services
- Date: Wed, 16 Apr 2008 17:14:14 -0500 (CDT)
Author: otaylor
Date: 2008-04-16 17:14:14 -0500 (Wed, 16 Apr 2008)
New Revision: 7426
Modified:
dumbhippo/trunk/server/src/com/dumbhippo/services/NetflixWebServices.java
Log:
Handle empty queues better
Modified: dumbhippo/trunk/server/src/com/dumbhippo/services/NetflixWebServices.java
===================================================================
--- dumbhippo/trunk/server/src/com/dumbhippo/services/NetflixWebServices.java 2008-04-16 19:57:48 UTC (rev 7425)
+++ dumbhippo/trunk/server/src/com/dumbhippo/services/NetflixWebServices.java 2008-04-16 22:14:14 UTC (rev 7426)
@@ -39,7 +39,11 @@
}
NetflixMovies movies = new NetflixMovies();
for (Object o : fetchResult.getFeed().getEntries()) {
- SyndEntry entry = (SyndEntry) o;
+ SyndEntry entry = (SyndEntry) o;
+ // An empty queue has exactly one entry saying "Your Queue is Empty"
+ // with this link
+ if ("http://www.netflix.com/Default".equals(entry.getLink()))
+ continue;
int priority = getPriorityFromEntryTitle(entry.getTitle());
String title = getTitleFromEntryTitle(entry.getTitle());
String description = entry.getDescription().getValue().trim();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]