aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-11-20 16:47:09 -0800
committerdaneren2005 <daneren2005@gmail.com>2013-11-20 16:47:09 -0800
commit4b2ca46c21460512fdb6ee8d4a9f32474047a816 (patch)
treead200044b15132e60d3b56aa597ad02bcf82332b /src/github
parent85b48f2ad235c2cbc4de33f56fc529089932c1f9 (diff)
downloaddsub-4b2ca46c21460512fdb6ee8d4a9f32474047a816.tar.gz
dsub-4b2ca46c21460512fdb6ee8d4a9f32474047a816.tar.bz2
dsub-4b2ca46c21460512fdb6ee8d4a9f32474047a816.zip
Fix hash of id crashing in cases where it is invalid
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/service/parser/PodcastEntryParser.java2
1 files changed, 1 insertions, 1 deletions
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--;
}