From 4b2ca46c21460512fdb6ee8d4a9f32474047a816 Mon Sep 17 00:00:00 2001 From: daneren2005 Date: Wed, 20 Nov 2013 16:47:09 -0800 Subject: Fix hash of id crashing in cases where it is invalid --- src/github/daneren2005/dsub/service/parser/PodcastEntryParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/github/daneren2005/dsub/service/parser/PodcastEntryParser.java b/src/github/daneren2005/dsub/service/parser/PodcastEntryParser.java index 585b3057..58b1432b 100644 --- a/src/github/daneren2005/dsub/service/parser/PodcastEntryParser.java +++ b/src/github/daneren2005/dsub/service/parser/PodcastEntryParser.java @@ -88,7 +88,7 @@ public class PodcastEntryParser extends AbstractParser { episode.setPath(episode.getPath().substring("Podcasts/".length())); } - if("error".equals(episode.getStatus()) || "skipped".equals(episode.getStatus())) { + if(episode.getId() == null) { episode.setId(String.valueOf(bogusId)); bogusId--; } -- cgit v1.2.3