Kodi Community Forum
Empty stream details - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+---- Forum: JSON-RPC (https://forum.kodi.tv/forumdisplay.php?fid=174)
+---- Thread: Empty stream details (/showthread.php?tid=142751)



Empty stream details - Mizaki - 2012-10-14

Somewhere along the line stream details that are empty now return:
Code:
"streamdetails": { "audio": [], "subtitle": [], "video": [] }
I may have missed it but is that on purpose? Before "streamdetails" would be empty.


RE: Empty stream details - Martijn - 2012-10-14

(2012-10-14, 20:25)Mizaki Wrote: Somewhere along the line stream details that are empty now return:
Code:
"streamdetails": { "audio": [], "subtitle": [], "video": [] }
I may have missed it but is that on purpose? Before "streamdetails" would be empty.

iirc yes.
Always provide what you requested even when it's empty


RE: Empty stream details - Mizaki - 2012-10-14

I vaguely remember something about that but I thought it ended up being the other way around. Smile Not a problem ofc, just need to change the check.


RE: Empty stream details - Montellese - 2012-10-14

We had this discussion in the other JSON-RPC thread and I first went with the "no stream details at all if not available" approach but it wasn't really consistent with how we handle other "empty" fields so I went with this instead.