2009-02-13, 14:36
ghizzu Wrote:I found what the problem is. Passing the URL to the external player XBMC replace "/" with "\". This is fine for local windows files, but it gives an illegal URL for net streams.
So it seems that I must learn some regular expression stuff for using the <replacers> tag...
Update: OK, this seems to work:
<replacers>
<replacer global="true">
<match>http:\\*</match>
<pat>\</pat>
<rep>/</rep>
</replacer>
</replacers>
That will override the existing replacers and prevent smb URIs working, you'd need an action="append". I think the builtin replacers should probably change to only swap / for \ in smb URIs. I'll change the code when I get a minute but in the meantime you can do it with this (I think, I haven't tried it ):
Code:
<replacers>
<replacer global="true">
<match>^smb://</match>
<pat>/</pat>
<rep>\\</rep>
</replacer>
<replacer>
<match>^smb:\\\\</match>
<pat>smb:(\\\\[^\\]*\\)</pat>
<rep>\1</rep>
</replacer>
</replacers>