Comments (11)
I'd very much appreciate socks5 support, i host a socks5 proxy and would like to listen to pandora at work (where it's blocked)
from pithos.
The workaround is:
$ torify pithos
I think you need to have torsocks installed.
from pithos.
I am using right now browser with TOR to listen Pandora and it works.
I have tried
$ torify pithos
it does log me in, id does display songs, but hangs on buffering 0% as well as nothing can be clicked (same as when You do heavy computing in main thread).
I get in terminal spam of messages like:
[Jul 26 19:28:11] WARNING torsocks[24223]: [syscall] Unsupported syscall number 204. Denying the call (in tsocks_syscall() at syscall.c:465)
[Jul 26 19:28:11] WARNING torsocks[24223]: [syscall] Unsupported syscall number 204. Denying the call (in tsocks_syscall() at syscall.c:465)
[Jul 26 19:28:11] WARNING torsocks[24223]: [syscall] Unsupported syscall number 204. Denying the call (in tsocks_syscall() at syscall.c:465)
Also, it causes memory leak for me.
Linux Mint 18 x64 Cinnamone, stable repository
Maybe it would be better, to build-in support for listening from outside of USA like in this project:
https://github.com/PromyLOPh/pianobar
from pithos.
Seems like it should be pretty easy to use PySocks.
https://github.com/Anorov/PySocks/blob/master/sockshandler.py
from pithos.
Recent requests module supports SOCKS through the additional PySocks dep. Perhaps worth the contemplating moving to it.
from pithos.
Well since requests literally just uses PySocks too, so its only more work than us using it directly.
from pithos.
I pushed a simple test for socks5 here: https://github.com/pithos/pithos/tree/wip/socks
I only implemented it for the control proxy atm but if somebody wants to test it I might finish it up.
from pithos.
@TingPing may I ask what's the status about socks branch?
from pithos.
It just needs to be tested.
from pithos.
I merged wlp/socks to master (in my local repository) but it didn't work.
- The main problem is in Pandora.build_opener(), the last line of which should be like this:
return urllib.request.build_opener(*(handlers + (https,)))
- The ImportError catch is probably not sufficient, as we then pass None to build_opener(), which causes a TypeError inside urllib (and anyway the print goes to the console, which is usually invisible).
from pithos.
@vectro Please do open a PR with a working version.
from pithos.
Related Issues (20)
- After viewing song info on several songs then the song timer stops and Pithos fails after that to advance songs HOT 8
- Feature Request: Filter explicit Content HOT 1
- Fresh Mint install. Pithos fails with "No secret collection at path:......." HOT 3
- Pithos cache grows without bound HOT 3
- RHEL-7 build dependencies HOT 1
- switch station from command line HOT 3
- Plugins not working (Python 3.11) HOT 7
- Shorter Tracks Labelled as Advertisements HOT 4
- Windows Support HOT 8
- flatpak install on chromeos - password lookup / pwd store both fail HOT 4
- TemporaryDirectory API used is too new for Debian (Bullseye)
- Volume Fluctuation
- ERROR:root:fault code: 1001 INVALID_AUTH_TOKEN message: Invalid username and/or password HOT 4
- flathub.org version is 1.6.0 HOT 1
- new version 1.6 is ignoring dark theme system colors HOT 2
- Cannot create station HOT 2
- Can't save credentials with flatpak and KDE6 HOT 10
- Pithos 1.6.2 on Ubuntu 22.04.4 will not add new stations, only delete them. HOT 1
- Launching pithos requires Authentication on first launch HOT 1
- FYI: Update to 1.6.2 might require a settings reset (no stations displayed, possible login issue). HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pithos.