-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Hi,
Netflix API says that this URL:
should work while getting title details. However, the get_title() function has this check for the categories:
if category and EXPANDS.index("@" + category) >= 0:
url = "%s/%s" % (url, category)
This restricts the category to be a singe word and defeats the purpose of having expands. I tried a quick crude fix :
if category :
expansions = category.split()
countOfExp = len(expansions)
countOfLegalExp = 0
for expansion in expansions:
if EXPANDS.index("@" + expansion.strip()) >= 0:
countOfLegalExp += 1
if countOfExp == countOfLegalExp:
url="%s?expand=%s" %(url,urllib.quote(category))
else:
raise NetflixError("Illegal Expansions present.")
However, this doesn't work. All I get in return is unexpanded data.
Please help.
Regds,
Paritosh
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels