How do I use a ':' in variable set from a plugin

Help each other out

How do I use a ':' in variable set from a plugin

Postby m_ski on Mon Aug 15, 2005 11:42 am

I am trying to set the coverart of a database item from within a plugin to C:\blahblah.png.

I use the command..
xpluginhelper.sendcommand("command:category:variable set:<category name>:coverart:C:\blahblah.png")


However, this just sets the coverart field to 'C' due to the extra ':' in the string which is ovbiously interpreted as a field separator. Does anyone know if I can use anything else in place of this such as xlobby program dir or something that does not include a ':'.
(I wanted to use skin:// but this obviously includes a ':' as well so would have the same problem!)
m_ski
 
Posts: 204
Joined: Wed Dec 08, 2004 7:57 am
Location: Kent, United Kingdom

Postby lar282 on Mon Aug 15, 2005 11:51 am

have u tried "c:\coverart.jpg"
with "" around it

//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Postby badubo on Tue Aug 16, 2005 12:46 am

You have an overloaded version of xpluginhelper.sendmessage where all parameters are in an ArrayList
badubo
 
Posts: 505
Joined: Mon May 03, 2004 7:33 pm
Location: Belgium

Postby m_ski on Wed Aug 17, 2005 11:13 am

Thanks - The arraylist worked perfectly, it sets the coverart field to the correct path.

However, the actual icon shown in the category is not updating. If I go into the database editor and have a look at the item I just changed it shows the referenced image correctly and when I close the DB editor the icon has been updated.
Does anybody know how I can get it to update the icon from within the plugin?
m_ski
 
Posts: 204
Joined: Wed Dec 08, 2004 7:57 am
Location: Kent, United Kingdom

Postby badubo on Wed Aug 17, 2005 11:57 am

probably by calling the refresh command
badubo
 
Posts: 505
Joined: Mon May 03, 2004 7:33 pm
Location: Belgium