PDA

View Full Version : Unrar in Python


kennelbound
2005-11-20, 19:10
i would like to try and unrar and unzip using python in xbmc. i know that xbmc has a way to unrar files, is there a way to access that using python?

alternatively i have found pyunrar at http://www.averdevelopment.com/python/unrar.html but i don't know if it will work on the xbox (it says that it requires windows and has an included dll)

any suggestions?

flash
2005-11-21, 16:18
hi.
i tried to do this before as i needed it for something i was working on. the cytpes package would need to be recompiled for the xbox. same goes for the dll itself.
flash

mrz
2005-11-26, 16:14
try downloading this script installer (http://www.xbmcscripts.com/scriptservice/) and unzip it. under ..\lib you'll find xbmcscripts_core.py. there you have an example of an unzip routine.

kennelbound
2005-11-27, 03:59
and unraring files?

is there any support for that (i am downloading the script-installer now)

spiff
2005-11-27, 15:46
until somebody expose the xbmc filesystem to python, the internal routines are unreachable.

kennelbound
2005-11-28, 07:23
are there any plans for that?

if not, does anybody have access to the resources needed to recompile the python unrar .dll to be compatible with xbmc?

kennelbound
2005-11-28, 22:45
nevermind.

i found the feature request on sourceforge for this feature:

http://sourceforge.net/tracker....=581841 (http://sourceforge.net/tracker/index.php?func=detail&aid=1280445&group_id=87054&atid=581841)

i hope that it finishes soon. i have a script waiting on rar support before it is "finished"

gangsta75
2005-11-29, 01:32
yes,i requested it but it's still open
when it will be available, i'll modify xbmcsub to take care of .rar subtitles

bye
gangsta75