mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fixing OPML import for FastLadder users.
This commit is contained in:
parent
3eed5f8eaa
commit
05c0d95b81
1 changed files with 4 additions and 2 deletions
|
@ -107,11 +107,13 @@ class OPMLImporter(Importer):
|
|||
def process_outline(self, outline):
|
||||
folders = []
|
||||
for item in outline:
|
||||
if not hasattr(item, 'xmlUrl') and hasattr(item, 'text'):
|
||||
if (not hasattr(item, 'xmlUrl') and
|
||||
(hasattr(item, 'text') or hasattr(item, 'title'))):
|
||||
folder = item
|
||||
title = getattr(item, 'text', None) or getattr(item, 'title', None)
|
||||
# if hasattr(folder, 'text'):
|
||||
# logging.info(' ---> [%s] ~FRNew Folder: %s' % (self.user, folder.text))
|
||||
folders.append({folder.text: self.process_outline(folder)})
|
||||
folders.append({title: self.process_outline(folder)})
|
||||
elif hasattr(item, 'xmlUrl'):
|
||||
feed = item
|
||||
if not hasattr(feed, 'htmlUrl'):
|
||||
|
|
Loading…
Add table
Reference in a new issue