Weather and Streams through Proxy
#1
hi,

i've problems using the weather, and the streams funktionality in xbmc 1.0 through a http proxy. when i've read the postings right this is a known issue.

what is the status of this requests? are they in work? or is this functionality simply not possible at the moment? maybe i can help with it, if only time or manpower is missing ...

can anyone tell me a little bit more about it?

regards
clynx
Reply
#2
for streams, mplayer depends on an environment variable called http_proxy or something of the sorts. xbox has no notion of environment variables.

mplayer does a getenv on that environment variable and of course null is returned.

there's possibly two solutions here. we have some emulation for msvcrt related calls. we can hack in there a call that checks for the http_proxy env variable and then return the correct value from the xboxmediacenter.xml. another solution, which may not be as good since it would involve also modifying mplayer source, would be to make a more generic getenv that would return the value found in xboxmediacenter.xml...

for example, if we have a <name>value</name> xboxmediacenter.xml, a call to:

getenv("name") should return value.


as for weather, i am not sure why the proxy does not work yet for that. i have not checked into that yet. by all means, go ahead and see why it does not.

thanks,

ts
42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#3
hi,

anything new for this thread?

i've thrown a short view on the "xbmc/xbmc/xbmc/guiwindowweather.cpp" file .. on line 256 the weather file is downloaded.
when i see it right that line could be replaced with the following, and it should work with proxys:

chttp http;
http.get(strurl, strweatherfile)

the code part was borrowed from the rss reader where proxys works nice ;o)

maybe someone could take a look at it, modifiy the file and test it for me ..
i'm sorry that i cannot provide a tested patch. i'm not able to compile it here ...

hope it helps ..

regards
clynx
Reply

Logout Mark Read Team Forum Stats Members Help
Weather and Streams through Proxy0