diff options
author | daneren2005 <daneren2005@gmail.com> | 2013-11-20 16:47:09 -0800 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2013-11-20 16:47:09 -0800 |
commit | 4b2ca46c21460512fdb6ee8d4a9f32474047a816 (patch) | |
tree | ad200044b15132e60d3b56aa597ad02bcf82332b | |
parent | 85b48f2ad235c2cbc4de33f56fc529089932c1f9 (diff) | |
download | dsub-4b2ca46c21460512fdb6ee8d4a9f32474047a816.tar.gz dsub-4b2ca46c21460512fdb6ee8d4a9f32474047a816.tar.bz2 dsub-4b2ca46c21460512fdb6ee8d4a9f32474047a816.zip |
Fix hash of id crashing in cases where it is invalid
-rw-r--r-- | src/github/daneren2005/dsub/service/parser/PodcastEntryParser.java | 2 |
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--;
}
|