2009-09-02, 11:19
Hi there,
I've been working on adding proxy support to iplayerv2.
I have a UK proxy setup and can view iplayer on my pc very well but unfortunately it doesn't work with iplayerv2.
Running some tests, I've found that plugins don't seem to use the same internet connection handling as XBMC itself. This means that whatever you set your proxy settings to in XBMC, it still isn't going to work.
I know the party line of "this is UK only" but a lot of people have requested it and I'd like it so I thought I'd try and help.
I have added some httplib2 proxy code around the creation of the HTTP class in iplayerv2.py but it doesn't seem to work properly.
Here is the code:
http = httplib2.Http(proxy_info = httplib2.ProxyInfo(3, '<MYPROXYIP>', <PORTNUM>, None, '<MYPROXYUSERNAME>', '<MYPROXYPASS>'))
At the moment I am hardcoding the proxy values but it could be easily put into the settings page.
Any help on how iplayerv2 communicates with the outside world would be great.
Does the code Player.play(url) use the same HTTP connection as above or does it connect on it's own accord? If so is there proxy support there?
Thanks in advance
Richard
I've been working on adding proxy support to iplayerv2.
I have a UK proxy setup and can view iplayer on my pc very well but unfortunately it doesn't work with iplayerv2.
Running some tests, I've found that plugins don't seem to use the same internet connection handling as XBMC itself. This means that whatever you set your proxy settings to in XBMC, it still isn't going to work.
I know the party line of "this is UK only" but a lot of people have requested it and I'd like it so I thought I'd try and help.
I have added some httplib2 proxy code around the creation of the HTTP class in iplayerv2.py but it doesn't seem to work properly.
Here is the code:
http = httplib2.Http(proxy_info = httplib2.ProxyInfo(3, '<MYPROXYIP>', <PORTNUM>, None, '<MYPROXYUSERNAME>', '<MYPROXYPASS>'))
At the moment I am hardcoding the proxy values but it could be easily put into the settings page.
Any help on how iplayerv2 communicates with the outside world would be great.
Does the code Player.play(url) use the same HTTP connection as above or does it connect on it's own accord? If so is there proxy support there?
Thanks in advance
Richard