Skip to content

Commit

Permalink
There, happy @hidden4003
Browse files Browse the repository at this point in the history
  • Loading branch information
Cazzar committed Jan 30, 2017
1 parent e02976e commit b5881e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Contents/Code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ def Search(self, results, media, lang, manual, movie):

# http://127.0.0.1:8111/api/serie/search?query=Clannad&level=1&apikey=d422dfd2-bdc3-4219-b3bb-08b85aa65579

pelimresults = HttpReq("api/serie/search?query=%s&level=%d&fuzzy=1" % (urllib.quote(name), 0))
prelimresults = HttpReq("api/serie/search?query=%s&level=%d&fuzzy=1" % (urllib.quote(name), 0))

for group in pelimresults['groups']:
for group in prelimresults['groups']:
for result in group['series']:
score = 100 if result['title'] == name else 85 # TODO: Improve this to respect synonyms./
meta = MetadataSearchResult('%s' % result['id'], result['title'], result['year'], score, lang)
Expand Down

0 comments on commit b5881e4

Please sign in to comment.