Fixed Bug in RSSHandler
This commit is contained in:
parent
09c7a5c7db
commit
738585aa61
|
@ -48,7 +48,7 @@ public class RSSHandler extends DefaultHandler {
|
||||||
} else if (qName.equalsIgnoreCase(FeedHandler.TITLE)) {
|
} else if (qName.equalsIgnoreCase(FeedHandler.TITLE)) {
|
||||||
if (active_root_element.equalsIgnoreCase(FeedHandler.CHANNEL)) {
|
if (active_root_element.equalsIgnoreCase(FeedHandler.CHANNEL)) {
|
||||||
feed.setTitle(strBuilder.toString());
|
feed.setTitle(strBuilder.toString());
|
||||||
} else if(active_root_element.equalsIgnoreCase(FeedHandler.TITLE)) {
|
} else if(active_root_element.equalsIgnoreCase(FeedHandler.ITEM)) {
|
||||||
currentItem.setTitle(strBuilder.toString());
|
currentItem.setTitle(strBuilder.toString());
|
||||||
} else if(active_root_element.equalsIgnoreCase(FeedHandler.IMAGE)) {
|
} else if(active_root_element.equalsIgnoreCase(FeedHandler.IMAGE)) {
|
||||||
feed.getImage().title = strBuilder.toString();
|
feed.getImage().title = strBuilder.toString();
|
||||||
|
@ -62,7 +62,7 @@ public class RSSHandler extends DefaultHandler {
|
||||||
} else if (qName.equalsIgnoreCase(FeedHandler.LINK)) {
|
} else if (qName.equalsIgnoreCase(FeedHandler.LINK)) {
|
||||||
if (active_root_element.equalsIgnoreCase(FeedHandler.CHANNEL)) {
|
if (active_root_element.equalsIgnoreCase(FeedHandler.CHANNEL)) {
|
||||||
feed.setLink(strBuilder.toString());
|
feed.setLink(strBuilder.toString());
|
||||||
} else if(active_root_element.equalsIgnoreCase(FeedHandler.TITLE)){
|
} else if(active_root_element.equalsIgnoreCase(FeedHandler.ITEM)){
|
||||||
currentItem.setLink(strBuilder.toString());
|
currentItem.setLink(strBuilder.toString());
|
||||||
}
|
}
|
||||||
} else if (qName.equalsIgnoreCase(FeedHandler.PUBDATE)) {
|
} else if (qName.equalsIgnoreCase(FeedHandler.PUBDATE)) {
|
||||||
|
|
Loading…
Reference in New Issue