xbmcplugin.addDirectoryItem and url issue
#1
I try to wite addon to browse photos from Synology photo station and facing issue with xbmcplugin.addDirectoryItem and url parameter.
When url is "simple" like http://host/path/photo.jpg it is working fine and opening in kodi but when url is more complex like http://host/path/script.ext?query=params it just don't work, without errors.
Thanks
Reply
#2
The url parameter has to point to something that kodi can resolve.
If the complex url returns an image(not http with image), video or music stream then it will work.
if the complex url returns several images then you have to code your addon to parse/scrape the reply and put each of those images in their own addDirectoryItem
Reply
#3
It returning image, here you have headers for request that is not working
Code:
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 17 Jun 2016 18:35:05 GMT
Content-Type: image/jpeg
Content-Length: 256905
Connection: keep-alive
Keep-Alive: timeout=20
Set-Cookie: PHPSESSID=b4mc9675vpai2nglcater5nh65; path=/
Cache-Control: max-age=604800
Last-Modified: Wed, 30 Mar 2016 22:14:20 GMT
Content-Disposition: inline; filename="STA55028.JPG"
Accept-Ranges: bytes

and request that is working
Code:
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 17 Jun 2016 18:34:37 GMT
Content-Type: image/jpeg; charset=binary
Connection: keep-alive
Keep-Alive: timeout=20
Vary: Accept-Encoding
Reply

Logout Mark Read Team Forum Stats Members Help
xbmcplugin.addDirectoryItem and url issue0