Code: Select all
agent = 'Deluge/%s (http://deluge-torrent.org)' % get_version()
Which, I get the rationale for identifying the downloader honestly, however, I've run into some sites that do naieve UA string checks, and reject requests from anything that doesn't look like a browser, even if you're appropriately forwarding valid cookies through deluge.
So, any possibility of allowing User-Agent to be set, for instance, via a call to deluge.core.core.Core.add_torrent_url when we're also forwarding a client's site cookies?
I can submit a PR as well, but just wanted to raise it here first.