2011-08-02, 13:13
jasonvp Wrote:I'm currently creating a widget for a Nevo S70 remote control that runs a cut down version of Windows Mobile 6. The remote also has a web browser. The problem is that the remote does not know what a .tbn file is and will not download the image. It only supports .png, .bmp, .jpg or .gif (non-animated).
So my question is would it be possible to write a script that would also generate a .jpg image in the XBMC Thumbnails folders as well as the .tbn file?
No not really, we do set the mimetype which makes it work on all webbrowsers afaik. tbn can be anything but defined via the header and the mimetype, mostly so its easier for us to handle the internals. Anyways, it would be better if we actually stored png and jpg instead of tbn. There is a trac ticket regarding it IIRC.
jasonvp Wrote:Hi Guys,
Is there any reason why "MusicPlayer.Cover" does not return any info?
Code:{"jsonrpc":"2.0","id":1,"method":"System.GetInfoLabels","params":{"labels":["MusicPlayer.Cover"]}}
Response
Code:{"id":1,"jsonrpc":"2.0","result":{"MusicPlayer.Cover":""}}
"MusicPlayer.Property(Fanart_Image)" works fine.
Code:{"jsonrpc":"2.0","id":1,"method":"System.GetInfoLabels","params":{"labels":["MusicPlayer.Property(Fanart_Image)"]}}
Response
Code:{"id":1,"jsonrpc":"2.0","result":{"MusicPlayer.Property(Fanart_Image)":"special://masterprofile/Thumbnails/Music/Fanart/b18ea041.tbn"}}
Cheers
Jason
The correct way to get the thumbnail of currently playing is via AudioPlaylist.GetItems, much how its done on in AudioLibrary.