Skip to content

Commit

Permalink
[web_api] fix search
Browse files Browse the repository at this point in the history
Signed-off-by: Sandmann79 <[email protected]>
  • Loading branch information
Sandmann79 committed Jun 27, 2024
1 parent bb5c9b5 commit 531848f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.video.amazon-test/resources/lib/web_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ def ParseSinglePage(oid, o, bCacheRefresh, data=None, url=None):
del state['seasons']

if oid not in state['self']:
res = [x for x in state['self'] if oid in (state['self'][x]['compactGTI'] if self._g.UsePrimeVideo else state['self'][x]['asins'])]
res = [x for x in state['self'] if oid in (state['self'][x].get('compactGTI', '') if self._g.UsePrimeVideo else state['self'][x].get('asins', ''))]
if len(res) > 1:
oid = res[0]

Expand Down

0 comments on commit 531848f

Please sign in to comment.