Stream icon indicating copy to clipboard operation
Stream copied to clipboard

Socks5 Problem

Open janiedjs opened this issue 10 years ago • 17 comments

Stream won't play if I add Socks5 proxy. I get Error: Script Failed!:addon.py. If I remove the Socks5 proxy it works. But then I am defeating the purpose of the proxy. Here is my log.

http://xbmclogs.com/show.php?id=248840

janiedjs avatar Jul 18 '14 05:07 janiedjs

-----Oprindelig besked----- Fra: Jane Sendt: 18-07-2014, 07:14 Til: brysonreece/Stream Emne: [Stream] Socks5 Problem (#23)

Stream won't play if I add Socks5 proxy. I get Error: Script Failed!:addon.py. If I remove the Socks5 proxy it works. But then I am defeating the purpose of the proxy. Here is my log.

http://xbmclogs.com/show.php?id=248840


Reply to this email directly or view it on GitHub: https://github.com/brysonreece/Stream/issues/23

PhatPuff avatar Jul 18 '14 11:07 PhatPuff

P -----Oprindelig besked----- Fra: Jane Sendt: 18-07-2014, 07:14 Til: brysonreece/Stream Emne: [Stream] Socks5 Problem (#23)

Stream won't play if I add Socks5 proxy. I get Error: Script Failed!:addon.py. If I remove the Socks5 proxy it works. But then I am defeating the purpose of the proxy. Here is my log.

http://xbmclogs.com/show.php?id=248840


Reply to this email directly or view it on GitHub: https://github.com/brysonreece/Stream/issues/23

PhatPuff avatar Jul 18 '14 12:07 PhatPuff

The proxy people say I need to be able to input a username and password.

Jane

janiedjs avatar Jul 18 '14 17:07 janiedjs

If your SOCKS5 proxy requires authentication, try downloading 1.4.6-RC3 and input your username and password combination in the addon settings.

Thanks!

brysonreece avatar Jul 18 '14 18:07 brysonreece

I downloaded 1.4.6-RC3 and installed it. Put in my username and password. Still gives me the script error: addon.py

The zip file on my thumb drive says 1.4.6-RC3 but the version in xbmc says RC2.
Disable the proxy and it works fine. Enable and it stops working.

Thanks

janiedjs avatar Jul 19 '14 06:07 janiedjs

Any more ideas on my Socks5 problem?

janiedjs avatar Jul 22 '14 03:07 janiedjs

Haven't had much time to look at it. I'll get to it as soon as I can and see if I can work out a remedy.

Thanks!

brysonreece avatar Jul 22 '14 03:07 brysonreece

Thanks.

janiedjs avatar Jul 22 '14 05:07 janiedjs

up.

Same issue here.

Thanks.

agoffard avatar Jul 24 '14 22:07 agoffard

Same happens to me.

After disabling (commenting out the relevant lines on ga.py) the log is the following: https://gist.github.com/gedl/fe1d676370d07205536a

gedl avatar Jul 26 '14 20:07 gedl

Any progress on this one ?

gedl avatar Aug 13 '14 19:08 gedl

Anything fixes?

janiedjs avatar Oct 20 '14 07:10 janiedjs

I don't think so.

gedl avatar Oct 23 '14 01:10 gedl

Alright, I just plowed through my night trying to get this sorted out.

Bottomline: I fixed it. Will clean up my work and commit changes tomorrow. Poke me if I forget.

bmanturner avatar Oct 29 '14 07:10 bmanturner

Is this a poke?

janiedjs avatar Oct 31 '14 02:10 janiedjs

brendanfturner, any fix yet?

janiedjs avatar Nov 05 '14 03:11 janiedjs

I'm sorry I missed the first poke. Turns out I was mistaken... The entire plugin is supposed to be wrapped up so that all traffic in and out goes through the proxy. My failed workaround involved allowing the scrapers to access the the web sans the proxy while keeping the actual streaming routed through the proxy.

I don't understand the modifications made to "socks.py" and I do not have a clear enough understanding of "torrent2http". Here was my attempt, for any who were curious:

#torrent2http.py
def find_free_port():
    import socket
    from stream import socks
    s = socks.socksocket()
    s.setproxy(socks.PROXY_TYPE_SOCKS5, "PROXYADDRESSHERE", "PORTNUMBERHERE", "USERNAME", "PASSWORD")
    s.bind(('',0))
    port = s.getsockname()[1]
    s.close()
    return port

Video plays like this, but it's not being routed through a proxy whatsoever because the returned port is appended to "localhost:" (in 'start()' found in torrent2http.py). I wish it were as simple as replacing localhost with a proxy url, but it isn't.

I honestly am not positive it's possible to use SOCKS without modifying the source of the torrent2http module this addon relies on. I personally am using a VPN now and have had no complaints since.

bmanturner avatar Nov 05 '14 06:11 bmanturner