Posts: 6,684
Joined: Mar 2009
Reputation:
147
phil65
Retired Team-Kodi Member
Posts: 6,684
2015-06-18, 05:10
(This post was last modified: 2015-06-18, 05:12 by phil65.)
hmm that´s weird. could you check if the downloaded data is correct?
(you can find it in log, Christopher Nolan for example is /home/mergeandvary/.kodi/userdata/addon_data/script.extendedinfo/TheMovieDB/a5d6fd1ae8e85d34b484cc0f50d9cde8.txt )
Also, does it happen in all lists? I never experienced such behaviour up to now.
Posts: 6,684
Joined: Mar 2009
Reputation:
147
phil65
Retired Team-Kodi Member
Posts: 6,684
2015-06-18, 05:20
(This post was last modified: 2015-06-18, 05:21 by phil65.)
hmm can replicate with your skin (only with directormovies for now), will see what I can find out.
Is there something special you did with that list? (some special vis condition, animation, whatever...)
Posts: 6,684
Joined: Mar 2009
Reputation:
147
phil65
Retired Team-Kodi Member
Posts: 6,684
2015-06-18, 05:33
(This post was last modified: 2015-06-18, 05:33 by phil65.)
...ok, found the problem. For that special call the API returns the same movie several times in case the person has several roles ("Writing", "Directing" etc., you can check by displaying Listitem.property(department) ) I will probably merge those into one then.
Posts: 58
Joined: Aug 2009
Reputation:
0
Hi
is it possible to assign a keyboard shortcut (by editing keyboard.xml) to call extendedinfo script? What I'm trying to accomplish is, when browsing through a movie list, press a key and open extendedinfo view showing info about the movie in focus.
I have tried the following commands in keyboard.xml with no success:
<a>RunScript(script.extendedinfo,info=extendedinfo,name=$INFO[ListItem.Title])</a>
<a>RunScript(script.extendedinfo,info=extendedinfo,dbid=$INFO[ListItem.DBID])</a>
On pressing the "a" key extendedinfo script is called, but following error message is displayed: "Could not find item at MovieDB". I suspect it’s a sintax issue.
Any ideas?
Thanks,
Spider
Posts: 6,684
Joined: Mar 2009
Reputation:
147
phil65
Retired Team-Kodi Member
Posts: 6,684
take a look at debug log. I am not sure if $INFO[] stuff gets translated in keymaps.
you know about the context menu add-on for Isengard, right? Perhaps thats sufficient already.
Posts: 58
Joined: Aug 2009
Reputation:
0
Hello phil65,
thanks for your fast aswer.
Yes, I know that I can call extendedinfo via context menu. The problem is, you have to press the "c" key, the "down" key a couple of times and then the "enter" key. It would be more confortable having to press just the "a' key.
Here an excerpt of the log file:
18:32:22 T:7948 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.TypeError'>
Error Contents: 'NoneType' object has no attribute '__getitem__'
Traceback (most recent call last):
File "F:\Programs\Kodi15 Custom\addons\script.extendedinfo\resources\lib\DialogVideoInfo.py", line 106, in onInit
HOME.setProperty("movie.ImageColor", self.data["general"]["ImageColor"])
TypeError: 'NoneType' object has no attribute '__getitem__'
-->End of Python script error report<--
18:32:22 T:7948 NOTICE: finished
I'm afraid your right, probably it's not possible to use INFO$[] labels in keyboard.xml.
Do you know any workarounds?
Regards,
Spider