2010-01-10, 18:36
Hi guys I have been using and fiddling with launcher for about 3 months now, Ive managed to twist to do all kinds of things beyond launching games or emulators. My current endeavor is launching ebooks using adobe reader and I have no problem in launching an ebook or anything with the plugin however I have run into problems while trying to extend the code. I wanted to add a description field to the rom definition (I have it set up so the author is the application and each book is listed as a rom) and I would very much like to be able to assign a blurb to each book, much like is shown by albums and movies in their respective views. I realise that this requires editing the skin to recognize an extra field and I have already managed to edit the polaroid skin from transparency! to look like a stack of books. My issue isnt with having the skin find the data, it is with having the plugin process the stored information from the xml, I confess my xml skills are somewhat better than my poor python skills.
I dont need any automated scraping or the like as I can edit the xml file directly, I just hoped someone with more adapt python skills might be able to help me with the processing portion.
In short I have added an additional field to each rom entry as <desc></desc>
and attempted (in vain) to have the python file launcher_plugin.py process this as romdata["desc"] = romdesc but unfortunately the script now fails when i execute it, I need to process this field in the python script such that the <desc> field can be interpreted by the skin xml as <label>$INFO[ListItem.desc]</label>
Thanks in advance for anyone who can help me unravel this small mess, I would ask Leo himself as he coded it in the first place but I know he has moved onto the Games Library project now.
I dont need any automated scraping or the like as I can edit the xml file directly, I just hoped someone with more adapt python skills might be able to help me with the processing portion.
In short I have added an additional field to each rom entry as <desc></desc>
and attempted (in vain) to have the python file launcher_plugin.py process this as romdata["desc"] = romdesc but unfortunately the script now fails when i execute it, I need to process this field in the python script such that the <desc> field can be interpreted by the skin xml as <label>$INFO[ListItem.desc]</label>
Thanks in advance for anyone who can help me unravel this small mess, I would ask Leo himself as he coded it in the first place but I know he has moved onto the Games Library project now.