2007-11-20, 14:25
This looks like an excellent interface!! Any updates on that yet? Is it also possible to used as remote software on a laptop to control XBMC?
Good good work!
Good good work!
import os
path = "SMB://server/movies"
#path = "F:\\videos\\"
VIDEO_EXT = ".m4v|.3gp|.nsv|.ts|.ty|.strm|.pls|.rm|.rmvb|.m3u|.ifo|.mov|.qt|.divx|.xvid|.bivx|.vob|.nrg|.img|.iso|.pva|.wmv|.asf|.asx|.ogm|.m2v|.avi|.bin|.dat|.mpg|.mpeg|.mp4|.mkv|.avc|.vp3|.svq3|.nuv|.viv|.dv|.fli|.flv|.rar|.001|.wpl|.zip|.vdr|.dvr-ms|.xsp"
print xbmc.executehttpapi( "GetDirectory(%s,%s)" % ( path, VIDEO_EXT, ) )
Quote:
09:01:08 M: 38182912 DEBUG: XBMCHTTPShim: Received command GetDirectory (SMB://server/movies;.m4v|.3gp|.nsv|.ts|.ty|.strm|.pls|.rm|.rmvb|.m3u|.ifo|.mov|.qt|.divx|.xvid|.bivx|.vob|.nrg|.img|.iso|.pva|.wmv|.asf|.asx|.ogm|.m2v|.avi|.bin|.dat|.mpg|.mpeg|.mp4|.mkv|.avc|.vp3|.svq3|.nuv|.viv|.dv|.fli|.flv|.rar|.001|.wpl|.zip|.vdr|.dvr-ms|.xsp)
09:01:08 M: 37842944 DEBUG: HttpApi Start command: GetDirectory paras: GetDirectory; SMB://server/movies;.m4v|.3gp|.nsv|.ts|.ty|.strm|.pls|.rm|.rmvb|.m3u|.ifo|.mov|.qt|.divx|.xvid|.bivx|.vob|.nrg|.img|.iso|.pva|.wmv|.asf|.asx|.ogm|.m2v|.avi|.bin|.dat|.mpg|.mpeg|.mp4|.mkv|.avc|.vp3|.svq3|.nuv|.viv|.dv|.fli|.flv|.rar|.001|.wpl|.zip|.vdr|.dvr-ms|.xsp
09:01:08 M: 37842944 DEBUG: HttpApi Finished command: getdirectory
09:01:08 M: 37855232 INFO: <li>Error