rembo10 / headphones

Automatic music downloader for SABnzbd
GNU General Public License v3.0
3.36k stars 600 forks source link

Deluge SSL #2540

Open sea3pea0 opened 8 years ago

sea3pea0 commented 8 years ago

Awesome work on the addition of Deluge! I am having an issue with ssl. I have deluge running with a self signed cert and I'm getting the following error when HP tries to add a torrent with deluge. I have the verify cert set to 0 under advanced in the config.ini but I'm guessing this applies only to indexers/providers. Maybe either this setting or perhaps another setting could allow this with deluge also? Here is what is showing up in HP logs:

Error sending torrent to Deluge. Are you sure it's running? Maybe the torrent already exists? 2016-02-25 10:19:13 INFO Deluge returned status None 2016-02-25 10:19:13 ERROR Traceback (most recent call last):; File "/volume1/@appstore/headphones-custom/var/Headphones/headphones/deluge.py", line 339, in _add_torrent_file; response = requests.post(delugeweb_url, data=post_data.encode('utf-8'), cookies=delugeweb_auth); File "/usr/local/headphones-custom/var/Headphones/lib/requests/api.py", line 109, in post; return request('post', url, data=data, json=json, _kwargs); File "/usr/local/headphones-custom/var/Headphones/lib/requests/api.py", line 50, in request; response = session.request(method=method, url=url, _kwargs); File "/usr/local/headphones-custom/var/Headphones/lib/requests/sessions.py", line 470, in request; resp = self.send(prep, _send_kwargs); File "/usr/local/headphones-custom/var/Headphones/lib/requests/sessions.py", line 578, in send; r = adapter.send(request, _kwargs); File "/usr/local/headphones-custom/var/Headphones/lib/requests/adapters.py", line 426, in send; raise SSLError(e, request=request); SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) 2016-02-25 10:19:13 ERROR Deluge: Adding torrent file failed: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)

noam09 commented 8 years ago

Hey @sea3pea0 I went back to the previous method for getting the folder name, it should work now. Regarding the album name in the history page, I'm not really sure why that happened. Could it have been a one off case? I think the name that shows up in the history should be the same as the torrent name. https://github.com/noam09/headphones/archive/develop.zip