Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check obj type using xml_url #8

Merged
merged 3 commits into from Oct 7, 2013
Merged

Conversation

teddychoi
Copy link
Member

Now categories without children can be read rightly

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.08%) when pulling e2cd1c2 on viobo:crawler into cca639e on earthreader:feedlist.

@ghost ghost assigned tribela Oct 7, 2013
@@ -474,7 +474,7 @@ def make_feed(self, type, title, xml_url, html_url=None, text=None,
return feed

def convert_from_outline(self, outline_obj):
if outline_obj.children:
if not outline_obj.xml_url:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If outline element has children(s) and doesn't have xmlUrl attribute, that is a FeedCategory, not a Feed.
So it shoud be

if outline_obj.children or not outline.xml_url:

@tribela tribela merged commit e2cd1c2 into earthreader:feedlist Oct 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants