Bug #4916
Bug in REST API /entry/grid*?
0%
Description
Hi,
I have multiple finished recordings that are visible in the webgui but some of them are not returned from this REST-calls
http://rpi:9981/api/dvr/entry/grid
http://rpi:9981/api/dvr/entry/grid_finished
This one isn't shown: /home/hts/recordings/Der Lehrer/Der Lehrer-Gangsta, Gangsta!-RTL Television-2018-01-27-15-45.mkv
But this is: /home/hts/recordings/Der Lehrer/Der Lehrer-Pikante Details kosten extra-RTL Television-2018-02-01-20-15.mkv
Has someone an idea why there are some entries missing?
Al
History
Updated by Jaroslav Kysela almost 7 years ago
Describe your problem in detail. Also, you may use the debugger in your browser to see what parameters are required to get the required data.
Updated by Al Bundy almost 7 years ago
The problem is, that the api doesn't return all die existing recordings.
If I open the mentioned URLs in browser I get a lot of data back but some recordings are missing.
What debugger do you mean?
Updated by Jaroslav Kysela almost 7 years ago
There are development tools in all browsers, so you can watch what's being sent through the network. It might be also an ACL (permissions) issue.
Updated by Dave Pickles almost 7 years ago
By default the API only returns the first 50 entries for functions ending in "/grid" (epg/event/grid is an exception). Maybe you have exceeded the limit? See my unofficial documentation at https://github.com/dave-p/TVH-API-docs/wiki
Updated by Al Bundy almost 7 years ago
Thank you Dave - limit was really the issue.
Is there a value to always get all?
0, 1, all and ALL didn't work.)
Currently I'm using 10000 which should work in most cases. :
Updated by Al Bundy almost 7 years ago
Thank you Dave - limit was really the issue.
Is there a value to always get all?
0, - 1, all and ALL didn't work.
Currently I'm using 10000 which should work in most cases. :-)
Updated by Al Bundy almost 7 years ago
I checked the headers with developer-tools - webui uses 999999999 as limit to show all recordings. :-)
So thanks at all - now I could modify the TvplexendAgent a little bit to have all my recordings with descriptions in plex. :-)
https://github.com/AlBundy33/TvplexendAgent.bundle