2014-12-20, 05:13
@999unreal: by modifying default.py and chapterparser.py I got it working also from SMB shares for .txt chapter/scene files :-)
In default.py:
import xbmcvfs
Replace "os.path.exists" with "xbmcvfs.exists"
In chaptersparser.py:
import xbmcvfs
In the processTxtFile function, replace "chapretfile = file(filename.decode('utf-8')).readlines()" with "chapretfile = xbmcvfs.File(filename.decode('utf-8')).read().splitlines()"
In the processXmlFile function, replace "chapretfile = xml.dom.minidom.parse( filename.decode('utf-8') )" with "chapretfile = xml.dom.minidom.parse( xbmcvfs.File(filename.decode('utf-8')) )"
In default.py:
import xbmcvfs
Replace "os.path.exists" with "xbmcvfs.exists"
In chaptersparser.py:
import xbmcvfs
In the processTxtFile function, replace "chapretfile = file(filename.decode('utf-8')).readlines()" with "chapretfile = xbmcvfs.File(filename.decode('utf-8')).read().splitlines()"
In the processXmlFile function, replace "chapretfile = xml.dom.minidom.parse( filename.decode('utf-8') )" with "chapretfile = xml.dom.minidom.parse( xbmcvfs.File(filename.decode('utf-8')) )"