I am working on a subtitle addon and there are some subtitles packed by season in rar format.
like subs.rar
1) s1e1.srt
2) s1e2.srt
3) s1e3.srt
…
And the files in those packages do not have the same file as the playing video file.
What i wan to do for those packages, is to read the contents of rar file, pop up a dialog.select() and let the user chose which subtitle he wants to use. This is OK for zipfiles but rar files dont have pure pythonic extraction.
1) If i directly use this rar file xbmc expects a file in the package which has the same name as the playing video file. So this approach is not working
2) I can read the contents of rarfile with xbmcvfs.listdir(path.to.rar) but i can not access the content inside the package like xbmcvfs.File(“path.to.rar” + “/” + “subtitle.srt”). Is there anyway for this approach
3) Since i can not access the file is possible to hack player to change playing listitems path with same name as the selected subtitle. This is hacky and ugly i know but sounds like an option.
4) What does rar:// scheme stand for.
Thanks.