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

yup #2

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion pyechonest/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def read_items(self, buckets=None, results=15, start=0):

read = property(read_items)

def get_feed(self, buckets=None, since=None, results=15, start=0):
def get_feed(self, buckets=None, since=None, results=15, high_relevance=False, start=0):
"""
Returns feed (news, blogs, reviews, audio, video) for the catalog artists; response depends on requested buckets

Expand All @@ -228,6 +228,8 @@ def get_feed(self, buckets=None, since=None, results=15, start=0):
Kwargs:
buckets (list): A list of strings specifying which feed items to retrieve

high_relevance (bool): if True only items that are highly relevant for this artist will be returned. Currently only news items are filtered for high relevance

results (int): An integer number of results to return

start (int): An integer starting value for the result set
Expand All @@ -253,6 +255,8 @@ def get_feed(self, buckets=None, since=None, results=15, start=0):
"""
kwargs = {}
kwargs['bucket'] = buckets or []
if high_relevance:
kwargs['high_relevance'] = 'true'
if since:
kwargs['since']=since
response = self.get_attribute("feed", results=results, start=start, **kwargs)
Expand Down