RssParser: Properly parse items in scraper
Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
400242690b
commit
40c55e689a
1 changed files with 1 additions and 1 deletions
|
|
@ -474,7 +474,7 @@ class ScrapingViewModel: ObservableObject {
|
|||
|
||||
do {
|
||||
let document = try SwiftSoup.parse(rss, "", Parser.xmlParser())
|
||||
items = try document.getElementsByTag("item")
|
||||
items = try document.getElementsByTag(rssParser.items)
|
||||
} catch {
|
||||
await toastModel?.updateToastDescription("RSS scraping error, couldn't fetch items: \(error)")
|
||||
print("RSS scraping error, couldn't fetch items: \(error)")
|
||||
|
|
|
|||
Loading…
Reference in a new issue