rembo10 / headphones

Automatic music downloader for SABnzbd
GNU General Public License v3.0
3.35k stars 603 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)

sea3pea0 commented 8 years ago

I just stumbled onto another issue with deluged. I set up deluged by filling in the info for "Move When Completed" and "Music Download Directory" . I then ended up switching back to black hole because of the ssl issue that I mentioned above.

Now I noticed that when the scheduled task for checking the download folder runs, it looks in the folder that I set for the Deluge "Move When Completed" folder even though I have enabled the torrent black hole to a different folder and black hole is what is set as the current download method.

I just cleared the input box in the deluge section for "Move When Completed" and everything went back to normal, hp started processing the folder set as the download folder for black hole.

Also I wonder why hp is looking in the "Move When Completed" in the first place, it seems it should look in the "Music Download Directory".

In my case, deluge is at a remote location and hp is local so when hp was looking for the folder I had set for "Move When Completed" the folder it was looking for didn't exist on the local machine. In the future I could probably get by leaving that option blank anyway because the deluge label plugin will handle the folders on it's own anyway.

rembo10 commented 8 years ago

@noam09 might want to take a look at this

noam09 commented 8 years ago

Looking into this now.

noam09 commented 8 years ago

Hey @sea3pea0, could you please try out the latest develop build in my repo? Check out the new SSL option: https://github.com/noam09/headphones/archive/develop.zip Just replace the "headphones" directory so your configuration doesn't get reset. Thanks!

ghost commented 8 years ago

Hey there, thanks for working on this.

I'm having the same issue so I gave this a try. I was able to get the SSL option to show up by extracting the contents of 'develop.zip' to my headphones installation directory (because, otherwise, it was not showing up under 'Download Settings')

While initially testing, I was able to get a torrent to add to Deluge when the "Deluge SSL Certificate" path was empty. Unfortunately, when I entered the path to my self-signed Deluge WebUI SSL certificate, I was still seeing errors about CERTIFICATE_VERIFY_FAILED.

Could it be that this is caused by using my own Certificate Authority (which is trusted on my machine) or maybe the SSL script is looking for the port which is not included in the "Issued To" field of the certificate?

2016-02-28 13:26:55 ERROR Error sending torrent to Deluge. Are you sure it's running? Maybe the torrent already exists?

2016-02-28 13:26:55 INFO Deluge returned status None

2016-02-28 13:26:55 ERROR Traceback (most recent call last):; File "C:\Program Files\Headphones\headphones\deluge.py", line 347, in _add_torrent_magnet; verify=deluge_verify_cert); File "C:\Program Files\Headphones\lib/requests\api.py", line 109, in post; return request('post', url, data=data, json=json, **kwargs); File "C:\Program Files\Headphones\lib/requests\api.py", line 50, in request; response = session.request(method=method, url=url, **kwargs); File "C:\Program Files\Headphones\lib/requests\sessions.py", line 470, in request; resp = self.send(prep, **send_kwargs); File "C:\Program Files\Headphones\lib/requests\sessions.py", line 578, in send; r = adapter.send(request, **kwargs); File "C:\Program Files\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-28 13:26:55 ERROR Deluge: Adding torrent magnet failed: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)

2016-02-28 13:26:55 ERROR Traceback (most recent call last):; File "C:\Program Files\Headphones\headphones\deluge.py", line 256, in _get_auth; verify=deluge_verify_cert); File "C:\Program Files\Headphones\lib/requests\api.py", line 109, in post; return request('post', url, data=data, json=json, **kwargs); File "C:\Program Files\Headphones\lib/requests\api.py", line 50, in request; response = session.request(method=method, url=url, **kwargs); File "C:\Program Files\Headphones\lib/requests\sessions.py", line 470, in request; resp = self.send(prep, **send_kwargs); File "C:\Program Files\Headphones\lib/requests\sessions.py", line 578, in send; r = adapter.send(request, **kwargs); File "C:\Program Files\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-28 13:26:55 ERROR Deluge: Authentication failed: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)

2016-02-28 13:26:55 DEBUG Deluge: Using certificate C:\ProgramData\deluge\ssl\deluge.cer, host is now https://[redacted]:8112

2016-02-28 13:26:55 DEBUG Deluge: Using password [redacted]

2016-02-28 13:26:55 DEBUG Deluge: Authenticating...

2016-02-28 13:26:55 DEBUG Deluge: Adding magnet

noam09 commented 8 years ago

Hey @polytrophic, thanks for the input.

  1. Are you sure the certificate's "issued to" field and the hostname HP is looking for are identical? You can check this by browsing to the Deluge WebUI, clicking on the lock icon in the address bar, Connection tab, Certificate Information (on Chrome, your browser may be a bit different). The "issued to" field and the hostname (anything after https:// and before the :PORT) should be identical.
  2. Is it possible your OS requires the certificate to be installed as a Root CA Authority?
  3. Could it be a permissions issue? Maybe HP doesn't have sufficient permissions to read the certificate file?

Please let me know. :)

ghost commented 8 years ago

Sure @noam09.

I just double checked and everything looks to be in order on my end. The host names appear to match and I do have the CA which signed the Deluge certificate installed as a Root CA Authority. Headphones is running as "SYSTEM" and, therefore, has full access to the certificate file. Just to be sure, I started Headphones from an elevated command prompt as my (admin) user account and I had the same result as earlier when I specified the path to the deluge certificate file under "Download Settings" in Headphones.

For your sanity, I've emailed screen shots of this stuff to the email address associated with your GitHub profile. The email's subject line is the same as the title of this issue. Let me know if I've missed something or if you have something else you need me to try.

sea3pea0 commented 8 years ago

@noam09 Thanks again for your work.. I've been waiting for a deluge option since black hole isn't reliable for me.

Not having any luck. I checked the cert on my server that deluge is running on and it was the stock cert that comes with deluge. So I created a new self signed one that has the proper hostname in it. I copied that ssl cert and placed it in headphones/var. I couldn't get deluge to add a torrent at all. This is what shows up in the logs:

016-02-28 13:53:00 ERROR Error sending torrent to Deluge. Are you sure it's running? Maybe the torrent already exists? 2016-02-28 13:53:00 INFO Deluge returned status None 2016-02-28 13:53:00 DEBUG Deluge: Response was None 2016-02-28 13:52:58 DEBUG Deluge: Adding file 2016-02-28 13:52:58 DEBUG Deluge: Sending Deluge torrent with name Edward Sharpe & The Magnetic Zeros - Up From Below (2009) - FLAC and content [d8:announce70:http://tracker.what.cd:340...] 2016-02-28 13:52:58 DEBUG Deluge: Getting torrent name 2016-02-28 13:52:58 DEBUG Deluge: Getting torrent name length 2016-02-28 13:52:58 DEBUG Deluge: 200 OK 2016-02-28 13:52:57 DEBUG Deluge: Trying to download (GET) 2016-02-28 13:52:57 DEBUG Deluge: Got a URL: https://what.cd/torrents.php?action=download&authkey=nope&=&+The+Magnetic+Zeros+-+Up+From+Below+%nope%29+-+FLAC=&id=nope&torrent_pass=nope 2016-02-28 13:52:57 INFO Sending torrent to Deluge 2016-02-28 13:52:57 INFO Found best result from What.cd: Edward Sharpe - 368.0 MB 2016-02-28 13:52:54 DEBUG Requesting URL via GET method: https://what.cd/torrents.php?action=download&authkey=nope&=&+The+Magnetic+Zeros+-+Up+From+Below+%nope%29+-+FLAC=&id=nope&torrent_pass=nope 2016-02-28 13:52:54 INFO Making sure we can download the chosen result

I tried with the path to the cert and also without and I couldn't get a torrent to add to deluge either way.

noam09 commented 8 years ago

Well @polytrophic, your setup seems to be impeccable, so it must really be something on my end. I'm trying to recreate the scenario now, I will let you know once I've made progress in solving it. Could you and also @sea3pea0 try using the Deluge capability, but without specifying a path to the certificate? This should force the code to use HTTPS without verifying the certificate - obviously this is a security issue, but I just want to make sure everything else is working properly before I delve into the SSL issues. Please attach as much of the logs as you can - obviously any lines containing "Deluge" are relevant. Thank you to you both. Here's the latest build: https://github.com/noam09/headphones/archive/develop.zip

noam09 commented 8 years ago

Also, @sea3pea0, I'd like to know if Deluge works for you without the certificate path, specifically using what.cd, because I've already seen issues specifically with that tracker and I'd like to know if it works now.

I think I was able to recreate an environment with a working yet non-working SSL certificate. I'm trying to find a solution to this issue at the moment, it seems like the issue has something to do with the requests module, and possibly SNI (http://stackoverflow.com/questions/27044807/python-requests-ssl-certificate-verification-fails-even-after-adding-ca-certifi).

sea3pea0 commented 8 years ago

Okay I tried again on what.cd with no cert specified and here's what happened:

2016-02-29 11:41:51 ERROR Error sending torrent to Deluge. Are you sure it's running? Maybe the torrent already exists? 2016-02-29 11:41:51 INFO Deluge: Returned status None 2016-02-29 11:41:51 DEBUG Deluge: Response was {u'error': None, u'id': 2, u'result': None} 2016-02-29 11:41:50 DEBUG Deluge: Connection result: True, Error: None 2016-02-29 11:41:49 DEBUG Deluge: Authentication cookies: {'_session_id': 'REMOVED'} 2016-02-29 11:41:49 DEBUG Deluge: Authentication result: True, Error: None 2016-02-29 11:41:48 DEBUG Deluge: FYI no SSL certificate configured 2016-02-29 11:41:48 DEBUG Deluge: Using password 9***o 2016-02-29 11:41:48 DEBUG Deluge: Authenticating... 2016-02-29 11:41:48 DEBUG Deluge: Adding file 2016-02-29 11:41:48 DEBUG Deluge: Sending Deluge torrent with name Edward Sharpe & The Magnetic Zeros - Up From Below (2009) - FLAC and content [d8:announce70:http://tracker.what.cd:340...] 2016-02-29 11:41:48 DEBUG Deluge: Getting torrent name 2016-02-29 11:41:48 DEBUG Deluge: Getting torrent name length 2016-02-29 11:41:48 DEBUG Deluge: 200 OK 2016-02-29 11:41:47 DEBUG Deluge: Trying to download (GET) 2016-02-29 11:41:47 DEBUG Deluge: Got a URL: https://what.cd/torrents.php?action=REMOVED&authkey=REMOVED&=REMOVED&+The+Magnetic+Zeros+-+Up+From+Below+%282009%29+-+FLAC=REMOVED&id=REMOVED&torrent_pass=REMOVED 2016-02-29 11:41:47 INFO Sending torrent to Deluge

I also tried with the cert path specified and had no luck that way either. I tried waffles.fm as well with no luck. I rarely get results for the music I search for from any of the public tracker options so I wasn't able to test any other trackers. Oh I did download your latest build and tried with that.

noam09 commented 8 years ago

This is very strange. At first I thought maybe some of the sites require cookies to download the file and maybe HP would need to be supplied with the appropriate cookies, but I managed to successfully download torrents from what using only a proper URL (that included an auth_key, etc.). Looking over parts of HP's code, I can't find anything special regarding what, only the Gazelle API which helps with all of the stages leading to the actual URL (logging in, searching, etc.) - the only "special" thing I saw was the use of a different user-agent string for what, which is what I'll try out now. @sea3pea0 or any other what user, please let me know if there's a difference now. Also, if you do find a way to test public sites, that would help with the elimination process - still not sure this is a what issue. Here's the latest build: https://github.com/noam09/headphones/archive/develop.zip

sea3pea0 commented 8 years ago

@noam09 I was able to successfully add torrents to Deluge with kat and tpb, with the path to the cert filled in and also with it left blank. No luck with either waffles or what.

2016-02-29 22:55:04 ERROR Error sending torrent to Deluge. Are you sure it's running? Maybe the torrent already exists? 2016-02-29 22:55:04 INFO Deluge: Returned status None 2016-02-29 22:55:04 DEBUG Deluge: Response was {u'error': None, u'id': 2, u'result': None} 2016-02-29 22:55:02 DEBUG Deluge: Adding file 2016-02-29 22:55:02 DEBUG Deluge: Sending Deluge torrent with name Nicki Minaj - Pink Friday (Best Buy Deluxe) (2010) [FLAC] and content [d8:announce70:http://tracker.what.cd:340...] 2016-02-29 22:55:01 DEBUG Deluge: Getting torrent name 2016-02-29 22:55:01 DEBUG Deluge: Getting torrent name length 2016-02-29 22:55:01 DEBUG Deluge: 200 OK 2016-02-29 22:55:00 DEBUG Deluge: Trying to download (GET) 2016-02-29 22:55:00 DEBUG Deluge: Got a URL: https://what.cd/torrents.php?action=REMOVED&authkey=REMOVED&id=REMOVED&torrent_pass=REMOVED 2016-02-29 22:55:00 INFO Sending torrent to Deluge 2016-02-29 22:55:00 INFO Found best result from What.cd: Nicki Minaj - Pink Friday (Best Buy Deluxe) (2010) [FLAC] - 491.0 MB 2016-02-29 22:54:59 DEBUG Requesting URL via GET method: https://what.cd/torrents.php?action=download&authkey=nope&id=nope&torrent_pass=nope 2016-02-29 22:54:59 INFO Making sure we can download the chosen result

noam09 commented 8 years ago

Can you please post logs when trying to download .torrent files from a public site vs. what?

sea3pea0 commented 8 years ago

Yea, no problem I should have done that already. It's funny though, now that I'm trying again I am having trouble getting it to work on the public trackers again too. I will add some logs to this post as soon as I manage to get a public tracker to work again.

Here is logs from right now when it's not working:

2016-03-01 00:50:43 ERROR Error sending torrent to Deluge. Are you sure it's running? Maybe the torrent already exists? 2016-03-01 00:50:43 INFO Deluge: Returned status None 2016-03-01 00:50:43 DEBUG Deluge: Response was {u'error': {u'message': u'Not authenticated', u'code': 1}, u'id': 2, u'result': None} 2016-03-01 00:50:43 DEBUG Deluge: Adding magnet 2016-03-01 00:50:43 DEBUG Deluge: Got a magnet link: magnet:?xt=REMOVED:btih:20530b4867439a4af255688f2d783a3415818a8e&dn=REMOVED+Minaj+-+Pink+Friday+Roman+Reloaded+%282012%29+%5BFLAC%5D&tr=REMOVED%5Bu%27udp%3A%2F%2Ftracker.openbittorrent.com%3A80%27%2C+u%27udp%3A%2F%2Fopen.demonii.com%3A1337%27%2C+u%27udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969%27%2C+u%27udp%3A%2F%2Fexodus.desync.com%3A6969%27%5D 2016-03-01 00:50:43 INFO Sending torrent to Deluge 2016-03-01 00:50:43 INFO Found best result from The Pirate Bay: Nicki Minaj - Pink Friday Roman Reloaded (2012) [FLAC] - 484.0 MB 2016-03-01 00:50:43 INFO Making sure we can download the chosen result

Here is logs from before when it worked:

2016-02-29 22:52:04 INFO Deluge: Torrent sent to Deluge successfully (3df1672fdc185dfeb03b92e4564d97e9d2c822ef) 2016-02-29 22:52:04 DEBUG Deluge: Response was {u'error': None, u'id': 2, u'result': u'3df1672fdc185dfeb03b92e4564d97e9d2c822ef'} 2016-02-29 22:52:03 DEBUG Deluge: Adding magnet 2016-02-29 22:52:03 DEBUG Deluge: Got a magnet link: magnet:?xt=REMOVED:btih:3DF1672FDC185DFEB03B92E4564D97E9D2C822EF&dn=REMOVED+minaj+pink+friday+deluxe+version+explicit+flac&tr=REMOVED%5Bu%27udp%3A%2F%2Ftracker.publicbt.com%2Fannounce%27%2C+u%27udp%3A%2F%2Fglotorrents.pw%3A6969%2Fannounce%27%5D 2016-02-29 22:52:03 INFO Sending torrent to Deluge

noam09 commented 8 years ago

Thanks. Could you try again with the latest build? https://github.com/noam09/headphones/archive/develop.zip

sea3pea0 commented 8 years ago

Ok it worked for me again with kat & tpb but still not with what or waffles. Here are logs from the kat snatch:

2016-03-01 01:36:56 INFO Torrent folder name: nicki minaj pink friday roman reloaded deluxe edition 2012 flac tracks cue lossless 2016-03-01 01:35:55 DEBUG Deluge: Get torrent folder name 2016-03-01 01:35:54 DEBUG Deluge: Setting seed ratio 2016-03-01 01:35:54 DEBUG Deluge: music label added to torrent 2016-03-01 01:35:52 DEBUG Deluge: Setting label 2016-03-01 01:35:52 INFO Deluge: Torrent sent to Deluge successfully (ebffebdf64d99ad555b94e9f6eb949b6309e50ed) 2016-03-01 01:35:52 DEBUG Deluge: Response was {u'error': None, u'id': 2, u'result': u'ebffebdf64d99ad555b94e9f6eb949b6309e50ed'} 2016-03-01 01:35:51 DEBUG Deluge: Adding magnet 2016-03-01 01:35:51 DEBUG Deluge: Got a magnet link: magnet:?xt=REMOVED:btih:EBFFEBDF64D99AD555B94E9F6EB949B6309E50ED&dn=REMOVED+minaj+pink+friday+roman+reloaded+deluxe+edition+2012+flac+tracks+cue+lossless&tr=REMOVED%5Bu%27udp%3A%2F%2Ftracker.publicbt.com%2Fannounce%27%2C+u%27udp%3A%2F%2Fglotorrents.pw%3A6969%2Fannounce%27%5D 2016-03-01 01:35:51 DEBUG Deluge: Connection result: True, Error: None 2016-03-01 01:35:50 DEBUG Deluge: Authentication cookies: {'_session_id': 'REMOVED'} 2016-03-01 01:35:50 DEBUG Deluge: Authentication result: True, Error: None 2016-03-01 01:35:49 DEBUG Deluge: Using certificate /volume1/@appstore/headphones-custom/var/deluge.crt, host is now https://REMOVED:16689 2016-03-01 01:35:49 DEBUG Deluge: Using password 2016-03-01 01:35:49 DEBUG Deluge: Authenticating... 2016-03-01 01:35:49 DEBUG Deluge: addTorrent Authentication 2016-03-01 01:35:49 INFO Sending torrent to Deluge 2016-03-01 01:35:49 INFO Found best result from Kick Ass Torrents: Nicki Minaj‎ - Pink Friday: Roman Reloaded (Deluxe Edition) - 2012, FLAC (tracks .cue), lossless - 624.0 MB 2016-03-01 01:35:49 INFO Making sure we can download the chosen result

..and here are logs when snatching from what:

Timestamp Level Message 2016-03-01 01:40:17 ERROR Error sending torrent to Deluge. Are you sure it's running? Maybe the torrent already exists? 2016-03-01 01:40:17 INFO Deluge: Returned status None 2016-03-01 01:40:17 DEBUG Deluge: Response was {u'error': None, u'id': 2, u'result': None} 2016-03-01 01:40:16 DEBUG Deluge: Adding file 2016-03-01 01:40:16 DEBUG Deluge: Sending Deluge torrent with name Nicki Minaj - Pink Friday Roman Reloaded (2012) [FLAC] {Deluxe Edition} and content [d8:announce70:http://tracker.what.cd:340...] 2016-03-01 01:40:16 DEBUG Deluge: Getting torrent name 2016-03-01 01:40:16 DEBUG Deluge: Getting torrent name length 2016-03-01 01:40:16 DEBUG Deluge: 200 OK 2016-03-01 01:40:15 DEBUG Deluge: Trying to download (GET) 2016-03-01 01:40:15 DEBUG Deluge: Trying different user-agent for this site 2016-03-01 01:40:15 DEBUG Deluge: Got a URL: https://what.cd/torrents.php?action=REMOVED&authkey=REMOVED&id=REMOVED&torrent_pass=REMOVED 2016-03-01 01:40:15 DEBUG Deluge: Connection result: True, Error: None 2016-03-01 01:40:14 DEBUG Deluge: Authentication cookies: {'_session_id': 'REMOVED'} 2016-03-01 01:40:14 DEBUG Deluge: Authentication result: True, Error: None 2016-03-01 01:40:14 DEBUG Deluge: Using certificate /volume1/@appstore/headphones-custom/var/deluge.crt, host is now https://REMOVED:16689 2016-03-01 01:40:14 DEBUG Deluge: Using password 2016-03-01 01:40:14 DEBUG Deluge: Authenticating... 2016-03-01 01:40:14 DEBUG Deluge: addTorrent Authentication 2016-03-01 01:40:14 INFO Sending torrent to Deluge

noam09 commented 8 years ago

When you try to add a .torrent from what using the Deluge WebUI, using just the download URL, does Deluge add it fine?

sea3pea0 commented 8 years ago

Yes it adds with only the url, no cookies needed.

sea3pea0 commented 8 years ago

I'm not sure if this matters, but I just looked at a url for a torrent on what and I noticed the elements were in a different sequence. First comes action, then id. I noticed in the logs you have action followed by authkey. Here is an example that I grabbed from what. https://what.cd/torrents.php?action=nope&id=nope&authkey=nope&torrent_pass=nope

Update: Guess it doesn't matter, I just tried switching the strings around and it doesn't seem to matter about the order.

noam09 commented 8 years ago

Technically the server could check for a certain order of parameters in the URL, but I don't think many sites would do this. It would be something pretty useless to rely on in terms of security - they already have authentication tokens in place. That aside, I'm pretty sure the problem doesn't lie in the actual downloading of the file because the logs show the file is downloaded successfully.

Just to be certain: You're positive the torrent you are trying to download isn't already in Deluge? This is very important. If you're sure, please try out the latest build. https://github.com/noam09/headphones/archive/develop.zip

sea3pea0 commented 8 years ago

Yes I am certain the torrents that I have been trying aren't already in deluge. Thanks again for your work on this.

ghost commented 8 years ago

Hey @noam09,

I can confirm that adding a torrent to Deluge with SSL works correctly without specifying a path to the certificate file when I tested the latest build you posted.

Without the path set:

2016-03-01 08:34:26 INFO Torrent folder name: [redacted]

2016-03-01 08:34:21 DEBUG Deluge: Get torrent folder name

2016-03-01 08:34:21 DEBUG Deluge: Setting download path

2016-03-01 08:34:21 DEBUG Deluge: Setting seed ratio

2016-03-01 08:34:21 WARNING Could not get seed ratio for The Pirate Bay

2016-03-01 08:34:21 DEBUG Deluge: music label added to torrent

2016-03-01 08:34:21 DEBUG Deluge: Setting label

2016-03-01 08:34:21 INFO Deluge: Torrent sent to Deluge successfully (b23f51e29b9c45af81ec6b90f059bf13ff2a8411)

2016-03-01 08:34:21 DEBUG Deluge: Response was {u'error': None, u'id': 2, u'result': u'b23f51e29b9c45af81ec6b90f059bf13ff2a8411'}

2016-03-01 08:34:21 DEBUG Deluge: Adding magnet

2016-03-01 08:34:21 DEBUG Deluge: Got a magnet link: [redacted]

2016-03-01 08:34:21 DEBUG Deluge: Connection result: True, Error: None

2016-03-01 08:34:21 DEBUG Deluge: Authentication cookies: {'_session_id': 'REMOVED'}

2016-03-01 08:34:21 DEBUG Deluge: Authentication result: True, Error: None

2016-03-01 08:34:21 DEBUG Deluge: FYI no SSL certificate configured

2016-03-01 08:34:21 DEBUG Deluge: Using password [redacted]

2016-03-01 08:34:21 DEBUG Deluge: Authenticating...

2016-03-01 08:34:21 DEBUG Deluge: addTorrent Authentication

2016-03-01 08:34:21 INFO Sending torrent to Deluge

With the path set:

2016-03-01 08:37:03 ERROR Error sending torrent to Deluge. Are you sure it's running? Maybe the torrent already exists?

2016-03-01 08:37:03 INFO Deluge: Returned status False

2016-03-01 08:37:03 ERROR Traceback (most recent call last):; File "C:\Program Files\Headphones\headphones\deluge.py", line 389, in _add_torrent_magnet; verify=deluge_verify_cert); File "C:\Program Files\Headphones\lib/requests\api.py", line 109, in post; return request('post', url, data=data, json=json, **kwargs); File "C:\Program Files\Headphones\lib/requests\api.py", line 50, in request; response = session.request(method=method, url=url, **kwargs); File "C:\Program Files\Headphones\lib/requests\sessions.py", line 470, in request; resp = self.send(prep, **send_kwargs); File "C:\Program Files\Headphones\lib/requests\sessions.py", line 578, in send; r = adapter.send(request, **kwargs); File "C:\Program Files\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-03-01 08:37:03 ERROR Deluge: Adding torrent magnet failed: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)

2016-03-01 08:37:03 ERROR Traceback (most recent call last):; File "C:\Program Files\Headphones\headphones\deluge.py", line 291, in _get_auth; verify=deluge_verify_cert); File "C:\Program Files\Headphones\lib/requests\api.py", line 109, in post; return request('post', url, data=data, json=json, **kwargs); File "C:\Program Files\Headphones\lib/requests\api.py", line 50, in request; response = session.request(method=method, url=url, **kwargs); File "C:\Program Files\Headphones\lib/requests\sessions.py", line 470, in request; resp = self.send(prep, **send_kwargs); File "C:\Program Files\Headphones\lib/requests\sessions.py", line 578, in send; r = adapter.send(request, **kwargs); File "C:\Program Files\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-03-01 08:37:03 ERROR Deluge: Authentication failed: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)

2016-03-01 08:37:03 DEBUG Deluge: Connection failed, let's try HTTPS just in case

2016-03-01 08:37:03 DEBUG Deluge: Using certificate C:\ProgramData\deluge\ssl\deluge.cer, host is now https://REMOVED:8112

2016-03-01 08:37:03 DEBUG Deluge: Using password [redacted]

2016-03-01 08:37:03 DEBUG Deluge: Authenticating...

2016-03-01 08:37:03 DEBUG Deluge: Adding magnet

2016-03-01 08:37:03 DEBUG Deluge: Got a magnet link: [redacted]

2016-03-01 08:37:03 ERROR Traceback (most recent call last):; File "C:\Program Files\Headphones\headphones\deluge.py", line 291, in _get_auth; verify=deluge_verify_cert); File "C:\Program Files\Headphones\lib/requests\api.py", line 109, in post; return request('post', url, data=data, json=json, **kwargs); File "C:\Program Files\Headphones\lib/requests\api.py", line 50, in request; response = session.request(method=method, url=url, **kwargs); File "C:\Program Files\Headphones\lib/requests\sessions.py", line 470, in request; resp = self.send(prep, **send_kwargs); File "C:\Program Files\Headphones\lib/requests\sessions.py", line 578, in send; r = adapter.send(request, **kwargs); File "C:\Program Files\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-03-01 08:37:03 ERROR Deluge: Authentication failed: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)

2016-03-01 08:37:03 DEBUG Deluge: Connection failed, let's try HTTPS just in case

2016-03-01 08:37:03 DEBUG Deluge: Using certificate C:\ProgramData\deluge\ssl\deluge.cer, host is now https://REMOVED:8112

2016-03-01 08:37:03 DEBUG Deluge: Using password [redacted]

2016-03-01 08:37:03 DEBUG Deluge: Authenticating...

2016-03-01 08:37:03 DEBUG Deluge: addTorrent Authentication

2016-03-01 08:37:03 INFO Sending torrent to Deluge

noam09 commented 8 years ago

After delving deep into the requests, urllib3 and pyopenssl modules, it's beginning to look like verifying self-signed certificates may be an unsolvable issue, at least for the time being. This means that connections to Deluge can still be made over HTTPS, but the certificate being used won't be validated. Theoretically, this opens up the option for MITM (Man-in-the-Middle) attacks - but this should only be an issue for setups where the torrent is being sent to Deluge from Headphones from outside the local network. I'm assuming that most setups have HP and Deluge running in the same LAN.

Anyway, this isn't really the solution I was hoping for, but for now I think the only option is to use HTTPS without proper certificate verification since most users will be using self-signed certificates, and this is most likely the source of the issue (it's either that or some TLS version mismatch, in which case the issue lies in Deluge itself).

Now we just need to solve this what/waffles issue... Did the newest build produce any results?

sea3pea0 commented 8 years ago

Okay so I left the cert path blank for this test and here's what I got with the latest build:

2016-03-01 11:21:29 ERROR Error sending torrent to Deluge. Are you sure it's running? Maybe the torrent already exists? 2016-03-01 11:21:29 ERROR Traceback (most recent call last):; File "/volume1/@appstore/headphones-custom/var/Headphones/headphones/deluge.py", line 143, in addTorrent; with open(link, 'rb') as f:; IOError: [Errno 2] No such file or directory: u'/tmp/delugeweb-j6teY/Nicki Minaj - Pink Friday - 2010 (CD - FLAC - Lossless)-29063281.torrent' 2016-03-01 11:21:29 ERROR [Errno 2] No such file or directory: u'/tmp/delugeweb-j6teY/Nicki Minaj - Pink Friday - 2010 (CD - FLAC - Lossless)-29063281.torrent' 2016-03-01 11:21:29 DEBUG Deluge: Getting .torrent file 2016-03-01 11:21:29 DEBUG Deluge: Connection result: True, Error: None 2016-03-01 11:21:28 DEBUG Deluge: Authentication cookies: {'_sessionid': 'REMOVED'} 2016-03-01 11:21:28 DEBUG Deluge: Authentication result: True, Error: None 2016-03-01 11:21:28 DEBUG Deluge: FYI no SSL certificate configured 2016-03-01 11:21:28 DEBUG Deluge: Using password 2016-03-01 11:21:28 DEBUG Deluge: Authenticating... 2016-03-01 11:21:28 DEBUG Deluge: addTorrent Authentication 2016-03-01 11:21:28 DEBUG Deluge: Returned this local path: /tmp/delugeweb-j6teY/Nicki Minaj - Pink Friday - 2010 (CD - FLAC - Lossless)-29063281.torrent 2016-03-01 11:21:28 DEBUG Deluge: Response was {u'error': None, u'id': 32, u'result': u'/tmp/delugeweb-j6teY_/Nicki Minaj - Pink Friday - 2010 (CD - FLAC - Lossless)-nope.torrent'} 2016-03-01 11:21:27 DEBUG Deluge: Adding URL 2016-03-01 11:21:27 DEBUG Deluge: Letting Deluge download this 2016-03-01 11:21:27 DEBUG Deluge: Got a URL: https://what.cd/torrents.php?action=REMOVED&authkey=REMOVED&id=REMOVED&torrent_pass=REMOVED 2016-03-01 11:21:27 DEBUG Deluge: Connection result: True, Error: None 2016-03-01 11:21:26 DEBUG Deluge: Authentication cookies: {'_session_id': 'REMOVED'} 2016-03-01 11:21:26 DEBUG Deluge: Authentication result: True, Error: None 2016-03-01 11:21:25 DEBUG Deluge: FYI no SSL certificate configured 2016-03-01 11:21:25 DEBUG Deluge: Using password 2016-03-01 11:21:25 DEBUG Deluge: Authenticating... 2016-03-01 11:21:25 DEBUG Deluge: addTorrent Authentication 2016-03-01 11:21:25 INFO Sending torrent to Deluge

noam09 commented 8 years ago

Can you confirm the the .torrent file in fact doesn't exist in the path you see in the logs? Also while the process is executing (maybe the file exists for a short time)?

sea3pea0 commented 8 years ago

As far as I can tell the file doesn't exist there. I am watching the folder with win scp and refreshing the folder and I didn't see that path created.

sea3pea0 commented 8 years ago

When trying to add with waffles this is what I see:

2016-03-01 11:35:57 ERROR Error sending torrent to Deluge. Are you sure it's running? Maybe the torrent already exists? 2016-03-01 11:35:57 INFO Deluge: Returned status None 2016-03-01 11:35:57 DEBUG Deluge: Response was {u'error': None, u'id': 2, u'result': None} 2016-03-01 11:35:56 DEBUG Deluge: Adding file 2016-03-01 11:35:56 DEBUG Deluge: Sending Deluge torrent with name Nicki Minaj - Pink Friday (Best Buy Deluxe) (2010) [FLAC] and content [d8:announce97:http://tracker.waffles.fm/...] 2016-03-01 11:35:56 DEBUG Deluge: Getting torrent name 2016-03-01 11:35:56 DEBUG Deluge: Getting torrent name length 2016-03-01 11:35:53 DEBUG Deluge: 200 OK 2016-03-01 11:35:51 DEBUG Deluge: Trying to download (GET) 2016-03-01 11:35:51 DEBUG Deluge: Got a URL: https://waffles.fm/download.php/59606/747329/Nicki%20Minaj%20-%20Pink%20Friday%20%5BDeluxe%20Version%5D%20%28Best%20Buy%29%20%5B2010-CD-FLAC-Lossless-Log%5D.torrent?passkey=REMOVED&uid=REMOVED&rss=REMOVED 2016-03-01 11:35:51 DEBUG Deluge: Connection result: True, Error: None 2016-03-01 11:35:51 DEBUG Deluge: Authentication cookies: {'_session_id': 'REMOVED'} 2016-03-01 11:35:51 DEBUG Deluge: Authentication result: True, Error: None 2016-03-01 11:35:50 DEBUG Deluge: FYI no SSL certificate configured 2016-03-01 11:35:50 DEBUG Deluge: Using password 9***o 2016-03-01 11:35:50 DEBUG Deluge: Authenticating... 2016-03-01 11:35:50 DEBUG Deluge: addTorrent Authentication 2016-03-01 11:35:50 INFO Sending torrent to Deluge 2016-03-01 11:35:50 INFO Found best result from Waffles.fm: Nicki Minaj - Pink Friday [Deluxe Version](Best Buy) [2010-CD-FLAC-Lossless-Log] - 490.0 MB 2016-03-01 11:35:48 DEBUG Requesting URL via GET method: https://waffles.fm/download.php/nope/nope/Nicki%20Minaj%20-%20Pink%20Friday%20%5BDeluxe%20Version%5D%20%28Best%20Buy%29%20%5B2010-CD-FLAC-Lossless-Log%5D.torrent?passkey=nope&uid=nope&rss=1 2016-03-01 11:35:48 INFO Making sure we can download the chosen result

noam09 commented 8 years ago

Could you try again with waffles with the latest build? Maybe this time it'll work...

sea3pea0 commented 8 years ago

Ok now when I try waffles this is what the logs look like:

2016-03-01 13:03:49 ERROR Error sending torrent to Deluge. Are you sure it's running? Maybe the torrent already exists? 2016-03-01 13:03:49 ERROR Traceback (most recent call last):; File "/volume1/@appstore/headphones-custom/var/Headphones/headphones/deluge.py", line 143, in addTorrent; with open(link, 'rb') as f:; IOError: [Errno 2] No such file or directory: u'/tmp/delugeweb-tSwmPU/Nicki Minaj - Pink Friday [Deluxe Version](Best Buy) [2010-CD-FLAC-Lossless-Log].torrent' 2016-03-01 13:03:49 ERROR [Errno 2] No such file or directory: u'/tmp/delugeweb-tSwmPU/Nicki Minaj - Pink Friday [Deluxe Version](Best Buy) [2010-CD-FLAC-Lossless-Log].torrent' 2016-03-01 13:03:49 DEBUG Deluge: Getting .torrent file 2016-03-01 13:03:49 DEBUG Deluge: Connection result: True, Error: None 2016-03-01 13:03:48 DEBUG Deluge: Authentication cookies: {'_session_id': 'REMOVED'} 2016-03-01 13:03:48 DEBUG Deluge: Authentication result: True, Error: None 2016-03-01 13:03:47 DEBUG Deluge: FYI no SSL certificate configured 2016-03-01 13:03:47 DEBUG Deluge: Using password 2016-03-01 13:03:47 DEBUG Deluge: Authenticating... 2016-03-01 13:03:47 DEBUG Deluge: addTorrent Authentication 2016-03-01 13:03:47 DEBUG Deluge: Returned this local path: /tmp/delugeweb-tSwmPU/Nicki Minaj - Pink Friday [Deluxe Version](Best Buy) [2010-CD-FLAC-Lossless-Log].torrent 2016-03-01 13:03:47 DEBUG Deluge: Response was {u'error': None, u'id': 32, u'result': u'/tmp/delugeweb-tSwmPU/Nicki Minaj - Pink Friday [Deluxe Version](Best Buy) [2010-CD-FLAC-Lossless-Log].torrent'} 2016-03-01 13:03:46 DEBUG Deluge: Adding URL 2016-03-01 13:03:46 DEBUG Deluge: Letting Deluge download this 2016-03-01 13:03:46 DEBUG Deluge: Got a URL: https://waffles.fm/download.php/59606/747329/Nicki%20Minaj%20-%20Pink%20Friday%20%5BDeluxe%20Version%5D%20%28Best%20Buy%29%20%5B2010-CD-FLAC-Lossless-Log%5D.torrent?passkey=REMOVED&uid=REMOVED&rss=REMOVED 2016-03-01 13:03:46 DEBUG Deluge: Connection result: True, Error: None 2016-03-01 13:03:45 DEBUG Deluge: Authentication cookies: {'_session_id': 'REMOVED'} 2016-03-01 13:03:45 DEBUG Deluge: Authentication result: True, Error: None 2016-03-01 13:03:45 DEBUG Deluge: FYI no SSL certificate configured 2016-03-01 13:03:45 DEBUG Deluge: Using password 2016-03-01 13:03:45 DEBUG Deluge: Authenticating... 2016-03-01 13:03:45 DEBUG Deluge: addTorrent Authentication 2016-03-01 13:03:45 INFO Sending torrent to Deluge

noam09 commented 8 years ago

I don't mean to sound out of hand, but is there any way I can use What myself to debug this issue? Do they even give out invitations? It seems like this happens with What and Waffles - does anyone know if Waffles is also Gazelle-based? I'm trying to narrow down this issue, but once the torrent has reached HP (and according to the logs, it has) it gets harder to debug without physical access to the host.

AdeHub commented 8 years ago

@noam09 I have a Waffles invite if you want one, give me an email address

noam09 commented 8 years ago

Thanks @AdeHub! It's on my profile page. Hopefully a Waffles fix will lead to a What fix as well.

sea3pea0 commented 8 years ago

@noam09 Just sent you a what invite. I forgot I had any :) else I would have offered one earlier.

noam09 commented 8 years ago

Wow, thanks @AdeHub and @sea3pea0! This will make debugging much easier. EDIT: This was posted long after I typed it up, if you're wondering about the time difference between this and my next post. Althought I'd like to say I did, I didn't fix everything in just 2 minutes. ;)

noam09 commented 8 years ago

I'm happy to announce my latest build: https://github.com/noam09/headphones/archive/develop.zip Please try it out and let me know how things work out. :) @rembo10 Do you know if the "Headphones" User-Agent for What is a must? Is this something you have worked out with their administration?

sea3pea0 commented 8 years ago

I'm also happy to announce both waffles and what are working. Great work! I tested both with the certificate path entered as well as without.

noam09 commented 8 years ago

Yay!

sea3pea0 commented 8 years ago

Thanks @noam09 let us know when the changes get pushed into the development build so we know when we can update again.

noam09 commented 8 years ago

Oh, you're right, almost forgot to PR.

sea3pea0 commented 8 years ago

I noticed something that could be related to the changes you made because I've never seen it before. Album titles don't appear in history:

History

noam09 commented 8 years ago

Hmm... Can you please post a verbose log?

sea3pea0 commented 8 years ago

Here :)

noam09 commented 8 years ago

Unfortunately these logs don't contain the part where the Deluge module could have had an effect on the names. Could you post a log that starts even before the file was downloaded? Search and all?

sea3pea0 commented 8 years ago

and here (Fixed)

noam09 commented 8 years ago

Can you check if the latest fixes the album name issue? https://github.com/noam09/headphones/archive/develop.zip

sea3pea0 commented 8 years ago

Yes that looks good! Thank you for bringing deluge to headphones. Headphones should be a lot more reliable for me without having to use the black hole.

noam09 commented 8 years ago

I was happy to bring it. :) Could you try out the latest build just to make sure I didn't break anything? Deluge will now be given the Artist-Album as soon as it is called. https://github.com/noam09/headphones/archive/develop.zip

sea3pea0 commented 8 years ago

One more thing I noticed, not sure if it's new or maybe a one off case but I didn't notice the log entry where right after the torrent gets snatched it sets the torrent folder name. Anyway, in this case the torrent got snatched and the folder that headphones decides to look in for the finished torrent isn't quit right. The actual download folder for the torrent ended up being "Nicki Minaj - Pink Friday (Best Buy Deluxe) (2010) [FLAC]" and as you can see in the logs headphones is looking in "Nicki Minaj - Pink Friday [2010]". Here are the logs:

03-Mar-2016 10:21:12 - INFO :: CP Server Thread-5 : Searching for "Nicki Minaj - Pink Friday" 03-Mar-2016 10:21:12 - DEBUG :: CP Server Thread-5 : Using search term: Nicki Minaj Pink Friday 03-Mar-2016 10:21:12 - INFO :: CP Server Thread-5 : Searching Kick Ass Torrents using term: Nicki Minaj Pink Friday 03-Mar-2016 10:21:12 - DEBUG :: CP Server Thread-5 : Requesting URL via GET method: https://kat.cr/usearch/Nicki Minaj Pink Friday category:lossless/ 03-Mar-2016 10:21:14 - INFO :: CP Server Thread-5 : Found Nicki Minaj - Pink Friday (Deluxe Version) [Explicit] {FLAC}. Size: 521.0 MB 03-Mar-2016 10:21:14 - INFO :: CP Server Thread-5 : Found Nicki Minaj‎ - Pink Friday: Roman Reloaded (Deluxe Edition) - 2012, FLAC (tracks+.cue), lossless. Size: 624.0 MB 03-Mar-2016 10:21:14 - INFO :: CP Server Thread-5 : Parsing results from Waffles.fm 03-Mar-2016 10:21:14 - DEBUG :: CP Server Thread-5 : Requesting URL via GET method: https://www.waffles.fm/browse.php 03-Mar-2016 10:21:17 - INFO :: CP Server Thread-5 : Found Nicki Minaj - Pink Friday [Deluxe Version](Best Buy) [2010-CD-FLAC-Lossless-Log]. Size: 490.0 MB 03-Mar-2016 10:21:17 - INFO :: CP Server Thread-5 : Found Nicki Minaj - Pink Friday (Japan Edition) [2010-CD-FLAC-Lossless-Log]. Size: 551.0 MB 03-Mar-2016 10:21:17 - INFO :: CP Server Thread-5 : Searching What.cd... 03-Mar-2016 10:21:18 - INFO :: CP Server Thread-5 : Filtering torrents by format, maximum size, and minimum seeders... 03-Mar-2016 10:21:18 - INFO :: CP Server Thread-5 : Remaining torrents: Torrent: Pink Friday: Roman Reloaded - Lossless - ID: 29955000, Torrent: Pink Friday: Roman Reloaded - 24bit Lossless - ID: 32615627, Torrent: Pink Friday: Roman Reloaded - Lossless - ID: 29968229, Torrent: Pink Friday: Roman Reloaded - Lossless - ID: 29968351, Torrent: Pink Friday: Roman Reloaded - Lossless - ID: 30393245, Torrent: Pink Friday - Lossless - ID: 29259128, Torrent: Pink Friday - Lossless - ID: 29063281, Torrent: Pink Friday - Lossless - ID: 29585912 03-Mar-2016 10:21:18 - INFO :: CP Server Thread-5 : Found 8 matching releases from What.cd for Nicki Minaj - Pink Friday after filtering 03-Mar-2016 10:21:18 - INFO :: CP Server Thread-5 : Sorting torrents by times snatched and preferred bitrate None... 03-Mar-2016 10:21:18 - INFO :: CP Server Thread-5 : New order: Torrent: Pink Friday - Lossless - ID: 29063281, Torrent: Pink Friday: Roman Reloaded - Lossless - ID: 29968229, Torrent: Pink Friday - Lossless - ID: 29259128, Torrent: Pink Friday: Roman Reloaded - Lossless - ID: 29955000, Torrent: Pink Friday - Lossless - ID: 29585912, Torrent: Pink Friday: Roman Reloaded - Lossless - ID: 30393245, Torrent: Pink Friday: Roman Reloaded - Lossless - ID: 29968351, Torrent: Pink Friday: Roman Reloaded - 24bit Lossless - ID: 32615627 03-Mar-2016 10:21:18 - INFO :: CP Server Thread-5 : Searching The Pirate Bay using term: Nicki Minaj Pink Friday 03-Mar-2016 10:21:18 - DEBUG :: CP Server Thread-5 : Requesting URL via GET method: https://thepiratebay.se/search/Nicki Minaj Pink Friday/0/7/104 03-Mar-2016 10:21:20 - INFO :: CP Server Thread-5 : Found Nicki Minaj - Pink Friday Roman Reloaded (2012) [FLAC]. Size: 484.25 MiB 03-Mar-2016 10:21:20 - INFO :: CP Server Thread-5 : Found Nicki Minaj - Pink Friday 2010 only1joe FLAC-EAC. Size: 419.88 MiB 03-Mar-2016 10:21:20 - INFO :: CP Server Thread-5 : Nicki Minaj - Pink Friday (Roman Reloaded) 2012 only1joe FLAC-EA is larger than the maxsize or has too little seeders for this category, skipping. (Size: 598401351 bytes, Seeders: 0) 03-Mar-2016 10:21:20 - INFO :: CP Server Thread-5 : Parsing results from Mininova 03-Mar-2016 10:21:20 - DEBUG :: CP Server Thread-5 : Requesting URL via GET method: http://www.mininova.org/rss/Nicki%20Minaj%20Pink%20Friday/5 03-Mar-2016 10:21:21 - INFO :: CP Server Thread-5 : No results found from Mininova for Nicki Minaj Pink Friday 03-Mar-2016 10:21:24 - INFO :: CP Server Thread-5 : Making sure we can download the chosen result 03-Mar-2016 10:21:24 - DEBUG :: CP Server Thread-5 : Requesting URL via GET method: https://waffles.fm/download.php/nope/747329/Nicki%20Minaj%20-%20Pink%20Friday%20%5BDeluxe%20Version%5D%20%28Best%20Buy%29%20%5B2010-CD-FLAC-Lossless-Log%5D.torrent?passkey=nope&uid=nope&rss=1 03-Mar-2016 10:21:26 - INFO :: CP Server Thread-5 : Found best result from Waffles.fm: Nicki Minaj - Pink Friday [Deluxe Version](Best Buy) [2010-CD-FLAC-Lossless-Log] - 490.0 MB 03-Mar-2016 10:21:26 - INFO :: CP Server Thread-5 : Sending torrent to Deluge 03-Mar-2016 10:21:26 - DEBUG :: CP Server Thread-5 : Deluge: addTorrent Authentication 03-Mar-2016 10:21:26 - DEBUG :: CP Server Thread-5 : Deluge: Authenticating... 03-Mar-2016 10:21:26 - DEBUG :: CP Server Thread-5 : Deluge: Using password 9**o 03-Mar-2016 10:21:26 - DEBUG :: CP Server Thread-5 : Deluge: Using certificate /volume1/@appstore/headphones-custom/var/deluge.crt, host is now https://REMOVED:nope 03-Mar-2016 10:21:27 - DEBUG :: CP Server Thread-5 : Deluge: Authentication result: True, Error: None 03-Mar-2016 10:21:27 - DEBUG :: CP Server Thread-5 : Deluge: Authentication cookies: {'_session_id': 'REMOVED'} 03-Mar-2016 10:21:28 - DEBUG :: CP Server Thread-5 : Deluge: Connection result: True, Error: None 03-Mar-2016 10:21:28 - DEBUG :: CP Server Thread-5 : Deluge: Got a URL: https://waffles.fm/download.php/59606/747329/Nicki%20Minaj%20-%20Pink%20Friday%20%5BDeluxe%20Version%5D%20%28Best%20Buy%29%20%5B2010-CD-FLAC-Lossless-Log%5D.torrent?passkey=REMOVED&uid=REMOVED&rss=REMOVED 03-Mar-2016 10:21:28 - DEBUG :: CP Server Thread-5 : Deluge: Trying to download (GET) 03-Mar-2016 10:21:29 - DEBUG :: CP Server Thread-5 : Deluge: 200 OK 03-Mar-2016 10:21:29 - DEBUG :: CP Server Thread-5 : Deluge: Sending Deluge torrent with name Nicki Minaj - Pink Friday [2010] and content [d8:announce97:http://tracker.waffles.fm/...] 03-Mar-2016 10:21:29 - DEBUG :: CP Server Thread-5 : Deluge: Adding file 03-Mar-2016 10:21:31 - DEBUG :: CP Server Thread-5 : Deluge: Response was {u'error': None, u'id': 22, u'result': u'f6f68ca4782e8075120f2d034c27e96a3ef44908'} 03-Mar-2016 10:21:31 - INFO :: CP Server Thread-5 : Deluge: Torrent sent to Deluge successfully (f6f68ca4782e8075120f2d034c27e96a3ef44908) 03-Mar-2016 10:21:31 - DEBUG :: CP Server Thread-5 : Deluge: Setting label 03-Mar-2016 10:21:32 - DEBUG :: CP Server Thread-5 : Deluge: music label added to torrent 03-Mar-2016 10:21:32 - DEBUG :: CP Server Thread-5 : Deluge: Setting seed ratio 03-Mar-2016 10:21:33 - INFO :: CP Server Thread-5 : Sending PushBullet notification 03-Mar-2016 10:21:33 - DEBUG :: CP Server Thread-5 : Requesting URL via POST method: https://api.pushbullet.com/v2/pushes 03-Mar-2016 10:21:34 - INFO :: CP Server Thread-5 : PushBullet notifications sent. 03-Mar-2016 10:25:20 - INFO :: CP Server Thread-5 : Writing configuration to file 03-Mar-2016 10:25:21 - INFO :: CP Server Thread-5 : Re-scheduled background task: Download Scan 03-Mar-2016 10:25:21 - DEBUG :: CP Server Thread-5 : Using the following server values: MBHost: codeshy.com, MBPort: 8181, Sleep Interval: 0 03-Mar-2016 10:26:21 - DEBUG :: Thread-12 : Checking download folder for completed downloads (only snatched ones). 03-Mar-2016 10:26:21 - DEBUG :: Thread-12 : Checking if /volume1/homes/htpc/whatbox/music/Nicki Minaj - Pink Friday [2010] exists

noam09 commented 8 years ago

Yeah, that's probably my bad... I'll fix it up.