Unrar in Python
#1
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?
Reply
#2
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
Reply
#3
try downloading this script installer and unzip it. under ..\lib you'll find xbmcscripts_core.py. there you have an example of an unzip routine.
Reply
#4
and unraring files?

is there any support for that (i am downloading the script-installer now)
Reply
#5
until somebody expose the xbmc filesystem to python, the internal routines are unreachable.
Reply
#6
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?
Reply
#7
nevermind.

i found the feature request on sourceforge for this feature:

http://sourceforge.net/tracker....=581841

i hope that it finishes soon. i have a script waiting on rar support before it is "finished"
Reply
#8
Exclamation 
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
Reply

Logout Mark Read Team Forum Stats Members Help
Unrar in Python0