hxmc:source_translator
Path Translator
Complete Process
get src paths from MyVideo75 path table
get list of smb shares
convert smb shares to mount point objects
mount shares
register mount points with Path Translator
Finding Source Path
fileId can be found from the movie table
using fileId pathId can be found from files table
using pathId the strPath can be found from the path table
Path Replacements
Path Translator Table
Type | Name |
int | pathId same as pathId from path table |
varchar | strPath same as pathId from path table |
varchar | unixPath (/mnt/smb_xen-movies) |
What it does
Used to change XBMC media sources to paths that can be used by the video tag or web browsers
support local, smb, and nfs
mount sources on /mnt
"://" -> "_"
"/" -> "-"
smb://xen/movies -> /mnt/smb_xen-movies
Video Path Clean Class
Path Translator has a bad_path hashmap<String,String> keyed by media_path with cleaned path as map values
all access to bad_path hashmap is protected by a semaphore bad_path_mutex
class is a singleton
VideoPathClean.clean(path) is called by PathTranslator.translatePath
Video Path Illegal Chars
hxmc/source_translator.txt · Last modified: 2013/11/06 07:18 by tschulz