mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
Fix categories import from Thunderbird's OPML
Thunderbird OPML exports are looking like this: ```xml <opml version="1.0" xmlns:fz="urn:forumzilla:"> <head> <title>Thunderbird OPML Export - RSS</title> <dateCreated>Sat, 24 Feb 2024 11:31:13 GMT</dateCreated> </head> <body> <outline title="News"> <outline type="rss" ...> <outline type="rss" ...> ... </outline> <outline title="Blogs"> <outline type="rss" ...> <outline type="rss" ...> ... </outline> </body> ``` This commit make it so that categories are now correctly imported.
This commit is contained in:
parent
1da65d97d8
commit
c544dadd55
2 changed files with 6 additions and 6 deletions
|
@ -37,7 +37,7 @@ func getSubscriptionsFromOutlines(outlines opmlOutlineCollection, category strin
|
|||
CategoryName: category,
|
||||
})
|
||||
} else if outline.Outlines.HasChildren() {
|
||||
subscriptions = append(subscriptions, getSubscriptionsFromOutlines(outline.Outlines, outline.Text)...)
|
||||
subscriptions = append(subscriptions, getSubscriptionsFromOutlines(outline.Outlines, outline.GetTitle())...)
|
||||
}
|
||||
}
|
||||
return subscriptions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue