full path to compressed video
#1
i am attempting to fix 2 subtitle addons that do not work for movies inside archives.
the services for subtitles work on hashes only so i need to be able to read first couple of MBs of movie from archive.

how to get name of file inside the archive that is being played?
xbmc.Player().getPlayingFile() returns full archive path, but file inside the archive is not returned.

path inside the archive is being output to the log by DVDPlayer:
NOTICE: DVDPlayer: Opening: rar://D%3a%5cmovies%5cMovieFolder%5cmovie.rar/movie.mkv

my current workaround is to get first found movie container (i use xbmcvfs.listdir).
however a rar technically could contain multiple mkvs, what then?
DVDPlayer clearly knows this, it is logged, so if there is a way to access this from python addon then my code could be cleaner.
Reply
#2
until a better will be available/known to me i created a workaround using xbmcvfs.listdir for napiprojekt.
pull request created, waiting for merge to master.

in case you want to have it sooner:
https://github.com/ciukacz/service.subti...ee/patch-1
Reply

Logout Mark Read Team Forum Stats Members Help
full path to compressed video0