Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

Commit

Permalink
Fixed another JSON problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Hoad committed May 6, 2011
1 parent d163f94 commit d28305e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions default.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ def show_movie_submenu():
xbmcgui.Dialog().ok("ERROR!", "Could not detect movie paths! Contact developer!")
xbmcplugin.endOfDirectory(handle=handle, succeeded=False)
return
# use a horrid eval here to convert the string to a dictionary.
result = eval(xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": {"fields": ["file", "label", "trailer"]}, "id": 1}'))

result = eval(xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": {"fields": ["file", "title", "trailer"]}, "id": 1}'))
movies = result['result']['movies']

library_files = []
Expand Down

0 comments on commit d28305e

Please sign in to comment.