Posts: 444
Joined: Apr 2011
Reputation:
3
Inside the TraktUtilities add-on I had relied on the fact that XBMC's json notifications were separated by '/n' characters but recently these have been removed, was this by design or was it an accident, without these '/n' characters it is much harder to receive the notifications.
Posts: 4,549
Joined: Dec 2007
Reputation:
17
topfs2
Team-Kodi Developer
Posts: 4,549
Forgot to say that we could add \n between notifications if we wanted, afaik its not outside the spec. Anything in between the json objects is meant to be thrown away if we have proper parsers.
I do think its better if we don't have anything in between though, as it makes writing parsers easier IMO (don't have to think about throwing away the wrong data). And checking for \n is not that safe at any rate as you could have \n in a string also (very unlikely though).
If you have problems please read
this before posting
Always read the
XBMC online-manual,
FAQ and
search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the
forum rules.
For troubleshooting and bug reporting please make sure you
read this first.
"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Posts: 24
Joined: Apr 2011
Reputation:
0
prono
Junior Member
Posts: 24
2011-06-08, 15:03
(This post was last modified: 2011-06-08, 15:07 by prono.)
I use one of the latest builds (PRE-11.0 Git:201105250d1265ed)of XBMC and I'm seeing something that I would expect to be different.
1) If XBMC goes into screen saver mode it stays like that while I send 'Input.Select', 'Input.Up', 'Input.Down', ''Input.Left', 'Input.Right', same for others, most of them, I don't know of any that would cancel the XBMC screensaver.
2) If I send 'XBMC.SetVolume' the volume bar with the new volume setting does not apread. If I send 'XBMC.ToggleMute' the volume bar and the mute sign does apear.
3) Is the behavior described in the below messages as exected? the messages are sent in the same order.
{"method":"XBMC.SetVolume","id":101,"jsonrpc":"2.0","params":{"value":0}}
{"id":101,"jsonrpc":"2.0","result":0}
{"jsonrpc":"2.0","method":"XBMC.ToggleMute","id":100}
{"id":100,"jsonrpc":"2.0","result":100}
Thank you,
Posts: 4,549
Joined: Dec 2007
Reputation:
17
topfs2
Team-Kodi Developer
Posts: 4,549
volume = 0 is considered mute IIRC, this however is not really sane for json-rpc so I would suggest creating a bugreport.
All of the others seems like valid bugs, input should most likely cancel screensave but not execute the action.
If you have problems please read
this before posting
Always read the
XBMC online-manual,
FAQ and
search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the
forum rules.
For troubleshooting and bug reporting please make sure you
read this first.
"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Posts: 5,184
Joined: Jan 2009
Reputation:
131
As an FYI the "tvshowid" parameter in VideoLibrary.GetEpisodes just became optional with the latest commit. Now you can retrieve all episodes in your library if needed. But beware if you want to use the "season" parameter, you need to define the "tvshowid" parameter as well.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.
Posts: 75
Joined: Jun 2008
Reputation:
0
I'm using the latest osx nightly and I'm trying to use the VideoLibraryGetRecentlyAddedEpisodes() to get the newest tv show episodes. But i'm missing a reference back to the tv show itself. Is it possible to get the tv show thumbnail? I've looked through introspect but i can't find an good solution.
It would be nice to have the tvshow id returned with the Library.Fields.Episode. That way it would be easy to get an reference to a show from the recently added episodes. Another way to solve this is to create a function that returns the tvshowid with the episodeid as parameter, but that will create an extra call.