Permalink
Browse files

Bug fix if contains meta info of video by XML.

  • Loading branch information...
1 parent 81b02b8 commit cdc584eb331c4b81178c09a51903986182fce707 @mitukiii committed Feb 26, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/jp/mitukiii/tumblife/parser/TLPostParser.java
@@ -94,7 +94,11 @@ public TLPostParser(InputStream input)
} else if ("video-caption".equals(tag)) {
post.setVideoCaption(parser.nextText());
} else if ("video-source".equals(tag)) {
- post.setVideoSource(parser.nextText());
+ try {
+ post.setVideoSource(parser.nextText());
+ } catch (XmlPullParserException exception) {
+ // Raise error if contains meta info of video by XML.
+ }
} else if ("video-player".equals(tag)) {
post.setVideoPlayer(parser.nextText());
} else if ("audio-caption".equals(tag)) {

0 comments on commit cdc584e

Please sign in to comment.