Posts: 3,077
Joined: Jun 2009
(2012-08-20, 21:09)Montellese Wrote: (2012-08-20, 20:51)Tolriq Wrote: Is there a way to get .strm files in Files.GetDirectory with media set to video ?
It seems that they don't list even if the strm are scraped in Xbmc database.
.strm is in the list of video extensions so they should be listed by Files.GetDirectory when "media" is set to "video".
After some tests this seems to works
sorry for asking seems I always need to triple check users comments before asking :p
Posts: 20
Joined: Dec 2009
Reputation:
0
Hi Guys,
I am trying to re-write a very basic AMX control system that was controlling a Dharma based system using HTTP API
sendkey commands. eg. 'GET /xbmcCmds/xbmcHttp?command=sendkey(61478) HTTP/1.1' for Up.
I am now trying to get this to work on Dharma and it seems some commands dont work anymore so I am going to
have to change to the JSON method.
I have worked out basic controls. eg. '{"jsonrpc": "2.0", "method": "Input.Up", "params": {}, "id": "10"}' for Up but cannot
find ways of controlling things like Page Up, Page Down, Update Movies, Update Videos, Jump to Movies Folder,
Jump to TV Shows, Context Menu, Info etc. etc.
Is there a need to have a mixture of sendkeys and JSON or is there a practical way of getting all one way commands
working under JSON?
Sorry if this has been answered, I have tried to read through as many pages as I can and have searched for obvious
stuff but have only found some references to Input.ExecuteAction but think that this is for a newer version of XBMC.
Posts: 3,077
Joined: Jun 2009
Sendkeys via http won't work at all when Frodo is released.
For all Json commands you can check the Wiki or use the JSon.Introspect command or directly :
https://github.com/xbmc/xbmc/blob/master...thods.json
Some of the commands you needs may never see light in Json you must use EventServer / Client for that , check Wiki.
Posts: 1,363
Joined: Feb 2008
Reputation:
33
Bram77
Skilled Python Coder
Posts: 1,363
2012-08-24, 11:02
(This post was last modified: 2012-08-24, 11:06 by Bram77.)
Is the JSON-rpc service using open sockets and if not...are you planning to implement this?
edit: I'm aiming at the http service
Posts: 5,184
Joined: Jan 2009
Reputation:
131
What do you mean with "open sockets"? There are currently three ways to use the JSON-RPC API from a remote client:
1. Using HTTP POST requests on the port of the webserver and with the following URL: http://<ip>:<port>/jsonrpc
2. Using WebSockets on the port of the TCP server (9090 by default) and with the following URL: ws://<ip>:<port>/jsonrpc
3. Using a raw TCP socket on the port of the TCP server (9090 by default)
HTTP POST does not support server-side notifications but it has image download capabilities (which the other two don't).
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: 379
Joined: Mar 2010
Reputation:
0
2012-08-24, 11:31
(This post was last modified: 2012-08-24, 11:34 by grywnn.)
Concerning the watched status of episodes:
Never mind.
Looks like the playcount is updated correctly.
It's my XBMC that doesn't update the checkmarks if the episode was on screen in a list before.
Don't know wether its a skin issue (using confluence) or XBMC related: When i have a season list on screen in XBMC, update the playcount of one of its episodes via JSON, the checkmark isn't updated even if i leave an re-enter the episode list.
Checkmarks apear correctly if a change the status of an episode that hasn't been on screen before.
My guess would be a caching issue.
Edit:
Any episode i update looses it's sd/hd badge when i change the playcount.
Strange.
Posts: 3,077
Joined: Jun 2009
(2012-08-24, 11:30)Bram77 Wrote: Thanks for explaining, but that I already knew .
With Python and Node.js (probably others too) it's possible to create an open http server connection. It's the same as any other http connection except the connection never closes like a traditional http connection does. This means there is no more three way handshake at every request which is WAY faster and results in a smaller memory footprint. Open sockets are also referred to as 'streaming sockets' if I'm not mistaking.
The only http mechanism I'm aware that may act like this is Keep-Alive of HTTP 1.1.
And while I'm not sure Xbmc webserver do handle 1.1 this would lead to lot's of problems due to the limits at 4 threads in current implementation
So having a long timeout would pause lot's of problem and having a small timeout would not have a lot of interest
Posts: 5,184
Joined: Jan 2009
Reputation:
131
No this is currently not possible but I think there's already a feature request for it somewhere on Trac.
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: 5,184
Joined: Jan 2009
Reputation:
131
Hm you should be able to use "or" and "and" the same way. Do you get an error response or is it just a debug output in the XBMC log? If it's the latter I really need to remove that output as it seems to confuse a lot of people.
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.