2010-06-25, 17:53
Hi all,
since I also would like to have the information about subtitles in the video library also for external subtitle files (as feature request http://trac.xbmc.org/ticket/8472 suggests), I was browsing through the code a bit too see if this would be very hard to implement, and concluded that it should be possible (even for me). I'm not really familiar with the xbmc code, but I was thinking of adding the code in
where the path of the file should be available, so the subtitle files should be detectable. Then I could probably reuse some code from
or
Could maybe someone with more experience comment whether I'm looking in the right direction?
Thanks!
since I also would like to have the information about subtitles in the video library also for external subtitle files (as feature request http://trac.xbmc.org/ticket/8472 suggests), I was browsing through the code a bit too see if this would be very hard to implement, and concluded that it should be possible (even for me). I'm not really familiar with the xbmc code, but I was thinking of adding the code in
Code:
CDVDFileInfo::DemuxerToStreamDetails(CDVDDemux *pDemux, CStreamDetails &details, const CStdString &path)
where the path of the file should be available, so the subtitle files should be detectable. Then I could probably reuse some code from
Code:
CDVDFactorySubtitle::GetSubtitles
Code:
CUtil::CacheSubtitles
Could maybe someone with more experience comment whether I'm looking in the right direction?
Thanks!