Search the Community
Showing results for tags 'xml'.
-
I've been messing around with Rocky5's script for getting certain tags from a game's _resources/default.xml file like synopsis and release date info. I've trimmed it a bit to set my desired properties when I manually run it: https://pastebin.com/Tp8Ds103 Here's how it displays: I'm trying to figure out a way to have the script either autorun when focus shifts to a new list item/game, maybe on some kind of delay so that when scrolling through lots of stuff the Xbox doesn't just freeze up, or somehow parse all default.xml files in the library on load so that the info is already ready to go when you scroll to a different game, but that might take forever tbh. I'm also having a tough time figuring out how to trim a string, say I wanted to cut out "05 NOV " in the release date and just display the year. In the script: Current_Window.setProperty('Synopsis_release_date', Output.release_year.string) or in the xml: <label>[B]$INFO[Window(MyPrograms).Property(Synopsis_year)][/B]</label> Not sure where in there I'd do that, if I'd need to to load another utility in python, or if I can just do it in the skin's XML, which would be handy for other things. Some help from someone with more experience with Python would be much appreciated.
- 1 reply
-
- xbmc
- skinning/scripting
- (and 10 more)
-
I've been writing and tweaking my UnleashX config for about a day or so and I think I have every feature that I personally want from my dashboard. The only issue is with the DVD copy function. It works as expected, except that when it is selected without a disc in the drive, it completes instantly and still says that ripping the disc was successful. I'd like to throw an error MessageBox if this is the case just to make it a bit more presentable. Do any XML wizards know if there's a way to check if there's a disc in the drive? Any help is greatly appreciated. <List Text="Copy Disc to HDD" Sort="Off" Batch="True"> <Item Action="AskUser" Arg1="Copy Disc To HDD">Proceed with copying the disc to the HDD?\nThe directory will be written to F:\games\[Title]</Item> <Item Action="CopyDVD">Error: failed to copy disc. The disc may be dirty or damaged</Item> <Item Action="TrayOpen"/> <Item Action="MessageBox" Arg1="Complete">Disc successfully copied to HDD!\nPlease remove the disc before continuing.</Item> <Item Action="TrayClose"/> </List> config.xml
Board Life Status
Board startup date: April 23, 2017 12:45:48