Closed bruut closed 10 years ago
Reading the forums on What, this is probably an effect of the new cloudflare anti ddos protection system... No solution yet over there
Still having the same issue. Logging in is fine, searching the torrents is fine, but preprocessing/downloading the torrent is where it fails.
Apologies, didn't read your problem correctly. Deleted my original comment.
I think I can see why it works for me, but fails for you. When Headphones.py uses Transmission or uTorrent (I use the former), it drops out of the preprocesstorrent function immediately, it instead forwards the URL to transmission for it to download. If you're using another client/black hole, headphones will attempt to download the .torrent file for you.
From a glance, it looks like headphones.py needs to include the special cloudflare cookie (__cfduid) and/or the what.cd session cookie for the download to succeed.
I'll take a look at this later, this might be an easy fix.
OK, fixed. I've added the revision to my pull request: https://github.com/rembo10/headphones/pull/1407, or you can view the commit here: https://github.com/evanjd/headphones/commit/afe9a0259e13106b5111ec9cb537ff691a7835c2
I was wrong about the problem. Cookies aren't an issue, but cloudflare/what rejects requests without a user-agent.
Yes! Thank you for that. It runs nicely now. I am indeed using uTorrent via black hole method. Ty!
I needed to reinstall my system (including windows) so I started with a fresh install of python 2.7 (32bit) and headphones (latest from source) On my previous system, everything worked correctly, could download without problems.
Now, when I try to download an album using what, it finds the correct torrent, but gives my the following error during rpeprocessing:
Any ideas? Login to what is OK, I can manually download the torrent without problems.