2005-11-09, 18:35
hi all !
i would like to get a stream from a commercial website. the stream looks like : mms://xxxxxxx.wma
the thing is : to access this url, one must authentificate on the website (with a post méthod, and a cookie stored in the browser).
is there a way to do that in python for xbmc ?
i guess i can find a way to authentificate with the post méthod, then store the cookie in a file, and finally send this cookie to xbmc player (mplayer). for example, in the linux version of mplayer, i found this in the man pages :
so here is the subsidiary question :lol: : with linux, to ask mplayer to search a file for cookies, i can run this command line :
... found no argument in the xbmc.player command...
i would like to get a stream from a commercial website. the stream looks like : mms://xxxxxxx.wma
the thing is : to access this url, one must authentificate on the website (with a post méthod, and a cookie stored in the browser).
is there a way to do that in python for xbmc ?
i guess i can find a way to authentificate with the post méthod, then store the cookie in a file, and finally send this cookie to xbmc player (mplayer). for example, in the linux version of mplayer, i found this in the man pages :
Quote:# man mplayer
[...]
-cookies-file <filename> (network only)
read http cookies from <filename> (default: ~/.mozilla/ and ~/.netscape/) and skip reading from default locations. the file is assumed to be in netscape format.
[...]
so here is the subsidiary question :lol: : with linux, to ask mplayer to search a file for cookies, i can run this command line :
Quote:# mplayer -cookie-file mycookie.txt mms://xxxxxx.wmvhow can i do that in xbmc ?
... found no argument in the xbmc.player command...