pull/34/head
kunfei 5 years ago
parent bf77172bbc
commit 9469e52503
  1. 4
      app/src/main/java/io/legado/app/model/rss/RssParser.kt

@ -33,8 +33,8 @@ object RssParser {
// Start parsing the item // Start parsing the item
if (eventType == XmlPullParser.START_TAG) { if (eventType == XmlPullParser.START_TAG) {
when { when {
xmlPullParser.name xmlPullParser.name.equals(RSSKeywords.RSS_ITEM, true) ->
.equals(RSSKeywords.RSS_ITEM, true) -> insideItem = true insideItem = true
xmlPullParser.name.equals(RSSKeywords.RSS_ITEM_TITLE, true) -> xmlPullParser.name.equals(RSSKeywords.RSS_ITEM_TITLE, true) ->
if (insideItem) currentArticle.title = xmlPullParser.nextText().trim() if (insideItem) currentArticle.title = xmlPullParser.nextText().trim()
xmlPullParser.name.equals(RSSKeywords.RSS_ITEM_LINK, true) -> xmlPullParser.name.equals(RSSKeywords.RSS_ITEM_LINK, true) ->

Loading…
Cancel
Save