evilhero / mylar

An automated Comic Book downloader (cbr/cbz) for use with SABnzbd, NZBGet and torrents
GNU General Public License v3.0
977 stars 173 forks source link

Direct download to uTorrent not working #1402

Closed the-Dakta closed 7 years ago

the-Dakta commented 7 years ago

So I was using the blackhole for a while, because it was fine, but I've recentlys tarted tagging my torrents. To get support for this in mylar as well, I've enabled "utorrent" as the downloader. I'm using the same exact settings (IP Address and username/login) as similar apps (couchpotato/sonarr). It appears to work ok.

I've just gone to download some new comics. I get a pushover notification as though it's been added, but it's nowhere to be found in my utorrent. I've looked at the logs, and the logs make no mention of utorrent.

I've included what I hope is all of the relevant log data up to the point where it provides the pushover notification.

2016-09-27 16:13:44 INFO [NOTIFIER] PushOver notifications sent. 2016-09-27 16:13:44 DEBUG [UPDATER] Provider is 32P 2016-09-27 16:13:44 INFO [UPDATER] Updating status to snatched 2016-09-27 16:13:44 DEBUG [UPDATER] issueid: 117446 2016-09-27 16:13:44 DEBUG [UPDATER] comicid: 19572 2016-09-27 16:13:44 INFO Sending Pushover notification 2016-09-27 16:13:44 INFO [UPDATER] Updated the status (Snatched) complete for The Last Avengers Story Issue: 2 2016-09-27 16:13:44 DEBUG Deleted stale entry from nzblog for IssueID: 117446 [32P] 2016-09-27 16:13:43 INFO setting the nzbid for this download grabbed by 32P in the nzblog to : 10576 2016-09-27 16:13:43 DEBUG [UPDATER] Provider is 32P 2016-09-27 16:13:43 INFO [UPDATER] Updated the status (Snatched) complete for The Last Avengers Story Issue: 1 2016-09-27 16:13:43 INFO [UPDATER] Updating status to snatched 2016-09-27 16:13:42 DEBUG [UPDATER] issueid: 117446 2016-09-27 16:13:42 DEBUG [UPDATER] comicid: 19572 2016-09-27 16:13:42 DEBUG [UPDATER] Provider is 32P 2016-09-27 16:13:42 INFO [UPDATER] Updating status to snatched 2016-09-27 16:13:42 DEBUG [UPDATER] issueid: 117057 2016-09-27 16:13:42 DEBUG [UPDATER] comicid: 19572 2016-09-27 16:13:42 DEBUG Deleted stale entry from nzblog for IssueID: 117446 [32P] 2016-09-27 16:13:42 DEBUG Deleted stale entry from nzblog for IssueID: 117057 [32P] 2016-09-27 16:13:41 INFO setting the nzbid for this download grabbed by 32P in the nzblog to : 10576 2016-09-27 16:13:41 INFO setting the nzbid for this download grabbed by 32P in the nzblog to : 10576 2016-09-27 16:13:41 INFO [UPDATER] Updated the status (Snatched) complete for The Last Avengers Story Issue: 1 2016-09-27 16:13:41 DEBUG Found matching comic within pack...preparing to send to Updater with IssueIDs: {'issue_range': [1, 2], 'valid': True, 'issues': [{'int_iss': 1000, 'issueid': u'117057', 'issuenumber': u'1'}, {'int_iss': 2000, 'issueid': u'117446', 'issuenumber': u'2'}]} and nzbname of The.Last.Avengers.Story.v0.#1-2 2016-09-27 16:13:41 DEBUG Params: [('action', 'setprops'), ('hash', 'AA69AE5FCC921F1CFFB111B8A7812E277A42F407'), ('s', 'label'), ('v', 'mylar-comics')] 2016-09-27 16:13:41 DEBUG [UPDATER] Provider is 32P 2016-09-27 16:13:41 INFO [UPDATER] Updating status to snatched 2016-09-27 16:13:41 INFO pausing for 60 seconds before continuing to avoid hammering 2016-09-27 16:13:41 DEBUG [UPDATER] issueid: 117057 2016-09-27 16:13:41 DEBUG [UPDATER] comicid: 19572 2016-09-27 16:13:40 DEBUG Deleted stale entry from nzblog for IssueID: 117057 [32P] 2016-09-27 16:13:40 INFO setting the nzbid for this download grabbed by 32P in the nzblog to : 10576 2016-09-27 16:13:40 DEBUG Found matching comic within pack...preparing to send to Updater with IssueIDs: {'issue_range': [1, 2], 'valid': True, 'issues': [{'int_iss': 1000, 'issueid': u'117057', 'issuenumber': u'1'}, {'int_iss': 2000, 'issueid': u'117446', 'issuenumber': u'2'}]} and nzbname of The.Last.Avengers.Story.v0.#1-2 2016-09-27 16:13:40 DEBUG Params: [('action', 'setprops'), ('hash', 'AA69AE5FCC921F1CFFB111B8A7812E277A42F407'), ('s', 'label'), ('v', 'mylar-comics')] 2016-09-27 16:13:40 DEBUG [SSL: False] Search URL: http://127.0.0.1:9117/torznab/iptorrents?t=search&q=blacklung%2001&o=xml&cat=8020&apikey=xUDONTNEEDTOKNOWTHISx 2016-09-27 16:13:39 DEBUG Issue is already in a Downloaded / Snatched status. 2016-09-27 16:13:39 INFO [UPDATER] Updated the status (Snatched) complete for The Last Avengers Story Issue: 2 2016-09-27 16:13:38 DEBUG [UPDATER] Provider is 32P 2016-09-27 16:13:38 INFO [UPDATER] Updating status to snatched 2016-09-27 16:13:38 DEBUG [UPDATER] issueid: 117446 2016-09-27 16:13:38 DEBUG [UPDATER] comicid: 19572 2016-09-27 16:13:38 DEBUG findit = found! 2016-09-27 16:13:38 INFO [NOTIFIER] PushOver notifications sent. 2016-09-27 16:13:38 INFO Sending Pushover notification 2016-09-27 16:13:38 INFO [UPDATER] Updated the status (Snatched) complete for The Last Avengers Story Issue: 2 2016-09-27 16:13:37 DEBUG [UPDATER] Provider is 32P 2016-09-27 16:13:37 INFO [UPDATER] Updating status to snatched 2016-09-27 16:13:37 DEBUG [UPDATER] issueid: 117446 2016-09-27 16:13:37 DEBUG [UPDATER] comicid: 19572 2016-09-27 16:13:37 DEBUG Deleted stale entry from nzblog for IssueID: 117446 [32P] 2016-09-27 16:13:36 INFO setting the nzbid for this download grabbed by 32P in the nzblog to : 10576 2016-09-27 16:13:36 INFO [UPDATER] Updated the status (Snatched) complete for The Last Avengers Story Issue: 1 2016-09-27 16:13:36 DEBUG [UPDATER] Provider is 32P 2016-09-27 16:13:36 INFO [UPDATER] Updating status to snatched 2016-09-27 16:13:36 DEBUG [UPDATER] issueid: 117057 2016-09-27 16:13:36 DEBUG [UPDATER] comicid: 19572 2016-09-27 16:13:35 DEBUG Deleted stale entry from nzblog for IssueID: 117057 [32P] 2016-09-27 16:13:35 INFO setting the nzbid for this download grabbed by 32P in the nzblog to : 10576 2016-09-27 16:13:35 DEBUG Found matching comic within pack...preparing to send to Updater with IssueIDs: {'issue_range': [1, 2], 'valid': True, 'issues': [{'int_iss': 1000, 'issueid': u'117057', 'issuenumber': u'1'}, {'int_iss': 2000, 'issueid': u'117446', 'issuenumber': u'2'}]} and nzbname of The.Last.Avengers.Story.v0.#1-2 2016-09-27 16:13:35 DEBUG Params: [('action', 'setprops'), ('hash', 'AA69AE5FCC921F1CFFB111B8A7812E277A42F407'), ('s', 'label'), ('v', 'mylar-comics')] 2016-09-27 16:13:31 DEBUG Torrent hash: aa69ae5fcc921f1cffb111b8a7812e277a42f407 2016-09-27 16:13:31 DEBUG [32P] Saved torrent file to : C:\Users\Josh\Desktop\servers\mylar-master\cache\The_Last_Avengers_Story_2_1995.torrent 2016-09-27 16:13:31 DEBUG [32P-AUTHENTICATION] 32P (Auth Mode) Authentication already done. Attempting to use existing keys. 2016-09-27 16:13:31 DEBUG [32P] Verify SSL set to : True 2016-09-27 16:13:31 DEBUG filename for torrent set to : C:\Users\Josh\Desktop\servers\mylar-master\cache\The_Last_Avengers_Story_2_1995.torrent 2016-09-27 16:13:31 INFO matched on The Last Avengers Story 2016-09-27 16:13:31 DEBUG Torrent Provider:32P 2016-09-27 16:13:31 DEBUG link:10576 2016-09-27 16:13:31 DEBUG ComicName:The Last Avengers Story 2016-09-27 16:13:31 DEBUG [FAILED_DOWNLOAD_CHECKER] This is not in the failed downloads list. Will continue with the download. 2016-09-27 16:13:31 INFO [FAILED_DOWNLOAD_CHECKER] Successfully marked this download as Good for downloadable content 2016-09-27 16:13:31 INFO prov : 32P[10576] 2016-09-27 16:13:31 DEBUG link given by: 32P 2016-09-27 16:13:31 INFO Found The Last Avengers Story (1995) issue: 2 using 32P within a pack containing issues: 1-2 2016-09-27 16:13:31 DEBUG issues match! 2016-09-27 16:13:31 DEBUG nzbname used for post-processing:The.Last.Avengers.Story.v0.#1-2 2016-09-27 16:13:31 INFO Issue Number 2 exists within pack. Continuing. 2016-09-27 16:13:31 INFO issueid_info:{'issue_range': [1, 2], 'valid': True, 'issues': [{'int_iss': 1000, 'issueid': u'117057', 'issuenumber': u'1'}, {'int_iss': 2000, 'issueid': u'117446', 'issuenumber': u'2'}]} 2016-09-27 16:13:31 INFO Complete issue count of 2 issues are available within this pack for The Last Avengers Story

evilhero commented 7 years ago

Hmm...you know what it could very well be broken, as I've never tested it out (it was a PR by someone else, but it was thought to be working at the time but not sure if it was tested against 32p).

I think the reference point in the utorrent module might be broken since it's trying to send the url to utorrent (which doesn't have the payload attached to it, so no passkeys or apikeys or 32p torrent id) using the url variable, instead of sending the already downloaded torrent file to utorrent (which would have already used the identifying keys to grab the torrent file).

What version of uTorrent are you running?

/paging @DarkSir23 for some assistance please ;)

the-Dakta commented 7 years ago

uTorrent 3.2.2 (build 28500) 32-bit. I know that it's an older version, but it's required for another tracker I use.

WillowMist commented 7 years ago

I'm trying to remember... I know I did the Transmission stuff, but I'm not sure I did the uTorrent stuff. I'm happy to look at it, though.

the-Dakta commented 7 years ago

I appreciate any and all work put into this! Luckily comics are my least time sensitive torrents.

evilhero commented 7 years ago

1273 was the uTorrent PR I was looking at in regards to the paging request... I think I can get this going with the existing framework and just changing out that reference to the url, but I need to install utorrent first

the-Dakta commented 7 years ago

You are my hero!

On Tue, Sep 27, 2016, 7:36 PM evilhero notifications@github.com wrote:

1273 https://github.com/evilhero/mylar/pull/1273 was the uTorrent PR I

was looking at in regards to the paging request... I think I can get this going with the existing framework and just changing out that reference to the url, but I need to install utorrent first

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/evilhero/mylar/issues/1402#issuecomment-250056540, or mute the thread https://github.com/notifications/unsubscribe-auth/AB0AIYgOsQVZcKkpeoJ3TTVA2JK4dS2Oks5qudKhgaJpZM4KIQ15 .

WillowMist commented 7 years ago

Yeah, it's definitely mine. I just forgot. Up to you, I can take a look at it, as well.

evilhero commented 7 years ago

Sorry for the delayed response - I had to basically redo the utorrent module as it was floating in values that were incorrect, and/or were in the wrong spot.

I tested it specifically against what you are running, uTorrent 3.2.2 (build 28500) and was able to send the torrent directly to the client and have it apply a label. I just need to get the auto-start on loading to go and remove some of the unneeded items that aren't being referenced anymore and it should be good to go out the door. Hopefully can drop this into development either later tonight, or tomorrow depending on my free time.

the-Dakta commented 7 years ago

That sounds excellent! I'm pretty sure that auto-download on add is a utorrent preference, not something that would be tied to the torrent itself.

Thanks again for the great work!

On Fri, Sep 30, 2016, 4:40 PM evilhero notifications@github.com wrote:

Sorry for the delayed response - I had to basically redo the utorrent module as it was floating in values that were incorrect, and/or were in the wrong spot.

I tested it specifically against what you are running, uTorrent 3.2.2 (build 28500) and was able to send the torrent directly to the client and have it apply a label. I just need to get the auto-start on loading to go and remove some of the unneeded items that aren't being referenced anymore and it should be good to go out the door. Hopefully can drop this into development either later tonight, or tomorrow depending on my free time.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/evilhero/mylar/issues/1402#issuecomment-250876026, or mute the thread https://github.com/notifications/unsubscribe-auth/AB0AIRWrHK75KhEVUoN20cKa0RJzyIvvks5qvZ3QgaJpZM4KIQ15 .

evilhero commented 7 years ago

Oh it's not tied to the torrent itself, but some users don't like things autostarting when ratio's are involved that might cause problems. I didn't do the auto start on loading option, so atm it starts automatically but I'm gonna try my best to push it out tonight for ya.

Sorry about the long delay, just haven't had any free time the last few days.

the-Dakta commented 7 years ago

No worries, thanks!

the-Dakta commented 7 years ago

It's adding the torrents automatically now and working great! Only thing is, it's not adding the tags. This is relatively minor, but also the reason I enabled this functionality in the first place.

evilhero commented 7 years ago

It might only allow one tag/label per torrent - I only tested it with one as I just used 'comics' and it tagged it just fine. What are you trying to label them as ?

the-Dakta commented 7 years ago

Just 'mylar-comics'. No extra tags.

On Thu, Oct 6, 2016 at 2:09 PM evilhero notifications@github.com wrote:

It might only allow one tag/label per torrent - I only tested it with one as I just used 'comics' and it tagged it just fine. What are you trying to label them as ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/evilhero/mylar/issues/1402#issuecomment-252089316, or mute the thread https://github.com/notifications/unsubscribe-auth/AB0AIdoN39API-J67Xbs67oGVQpBz_Hgks5qxWNzgaJpZM4KIQ15 .

evilhero commented 7 years ago

If you open up your config.ini and check the utorrent_label option is there one indicated? I'm thinking that maybe it didn't save the settings properly for the tags.

the-Dakta commented 7 years ago

It's in there. Would the '-' character cause any issues?

On Thu, Oct 6, 2016 at 2:22 PM evilhero notifications@github.com wrote:

If you open up your config.ini and check the utorrent_label option is there one indicated? I'm thinking that maybe it didn't save the settings properly for the tags.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/evilhero/mylar/issues/1402#issuecomment-252092583, or mute the thread https://github.com/notifications/unsubscribe-auth/AB0AIbl5oso0BAsTnXC73-9REXp9rjjoks5qxWZ_gaJpZM4KIQ15 .

the-Dakta commented 7 years ago

So I changed the tag to just "comics" and thought it still wasn't working because uTorrent doesn't show that as a label, but when organizing my files, I notice there's a comic folder that it's properly sorting to. It seems it's mostly working as expected.

Just noticed that I didn't have it listed as a "persistent label" in utorrent. Added that, but it's still showing all of the other items as "no label" despite clearly working in the directories. I think this is beyond mylar and an issue with utorrent at this point?