2012-09-25, 03:48
I'm working on a slideshow for images from memebase and have it working just fine. But what I found is that even though I'm adding all images, as I add them to the playlist, xbmc is running " CFileCurl::GetMimeType -" on each URL I put in the playlist.
I am adding images to the playlist with:
item = '{ "jsonrpc": "2.0", "method": "Playlist.Add", "params": { "playlistid": 2 , "item": {"file": "%s"} }, "id": 1 }' %str(image)
where image is the URL from the site from a regular expression match (eg: http://i.chzbgr.com/completestore/2011/3...f3d01b.jpg )
Then I start it with
xbmc.executeJSONRPC('{ "jsonrpc": "2.0", "method": "Player.Open","params":{"item":{"playlistid":2}} }')
so, my question, is there a way to set the mime type as I add the image? When I start my addon, with 14 images, it takes a couple minutes for the slideshow to start because of having to check mime type on each image. Basically I'm always going to be adding either jpg or png and if I can set the mime type ahead of time it should help speed up the start of the show.
thanks!
I am adding images to the playlist with:
item = '{ "jsonrpc": "2.0", "method": "Playlist.Add", "params": { "playlistid": 2 , "item": {"file": "%s"} }, "id": 1 }' %str(image)
where image is the URL from the site from a regular expression match (eg: http://i.chzbgr.com/completestore/2011/3...f3d01b.jpg )
Then I start it with
xbmc.executeJSONRPC('{ "jsonrpc": "2.0", "method": "Player.Open","params":{"item":{"playlistid":2}} }')
so, my question, is there a way to set the mime type as I add the image? When I start my addon, with 14 images, it takes a couple minutes for the slideshow to start because of having to check mime type on each image. Basically I'm always going to be adding either jpg or png and if I can set the mime type ahead of time it should help speed up the start of the show.
thanks!