i want to know how do i go about getting info stored in an xbe when a dvd is inserted?
how do i extract the title and logo image of a game?
Accessing info in an XBE
b01
Senior Member Posts: 117 Joined: Nov 2003 Reputation: 0 Location: Southfield, MI |
2004-04-22 08:45
Post: #1
reading must be magical or something, it's how i find all da anwsers! ------ Ubuntu 8.10 (64bit) | AMD Sempron 2600+ | ATi 2400HD Pro | Asus AE1 Barebone ---- Ubuntu 9.04RC (64bit) | AMD 5000+ | BIOSTAR TA790GX XE w/ ATi 3300 |
| find quote |
b01
Senior Member Posts: 117 Joined: Nov 2003 Reputation: 0 Location: Southfield, MI |
2004-04-22 19:50
Post: #2
so i found the xbe file format on caustik's website:
xbe file format, by caustik very nice caustik so i could potenitally write a decoder, but caustik already wrote one, all i have to do is translate his code into python and give him credit. yes i'm aware that darkie could provide me acess to xbmc's method, but then they would probably have to write an interface for it and include it in the xbmc python library for everyone to use, and i would have to wait until the next release. the only question i have now is; what method do i use to open the xbe file, so that i can access this data? reading must be magical or something, it's how i find all da anwsers! ------ Ubuntu 8.10 (64bit) | AMD Sempron 2600+ | ATi 2400HD Pro | Asus AE1 Barebone ---- Ubuntu 9.04RC (64bit) | AMD 5000+ | BIOSTAR TA790GX XE w/ ATi 3300 |
| find quote |
b01
Senior Member Posts: 117 Joined: Nov 2003 Reputation: 0 Location: Southfield, MI |
2004-04-23 03:04
Post: #3
i finally got it, i can now retreive the title of an xbe, here is the script i used:
Quote:import xbmc, xbmcgui, os reading must be magical or something, it's how i find all da anwsers! ------ Ubuntu 8.10 (64bit) | AMD Sempron 2600+ | ATi 2400HD Pro | Asus AE1 Barebone ---- Ubuntu 9.04RC (64bit) | AMD 5000+ | BIOSTAR TA790GX XE w/ ATi 3300 |
| find quote |
blittan
Team-XBMC Handyman Joined: Jun 2004 Reputation: 11 Location: Sweden |
2006-06-15 14:56
Post: #4
this method results in a binary string.
after alot of testing and thinking, i have finally solved it ![]() my dirty hack: openedxbe = open("test.xbe", "rb") # open test.xbe for reading in binary mode openedxbe.seek(400, 0) # set startingpoint for reading xbetext = openedxbe.read(80) # read out the entire section assigned to the title openedxbe.close() # never forget to close a file you opened. bintext = xbetext[::2] # copy every odd character to a new string xbetext = "" # empty the xbetext string for s in bintext: # iterate the string if ord(s) in range(32, 127): #if the current character is in the ascii range xbename += s # add the character to xbename thats all there is to it... Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. If you don't have the time to read them, please don't take the time to post in this forum! For troubleshooting and bug reporting please make sure you read this first. |
| find quote |


Search
Help