evilhero / mylar

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

Possibility to edit comic names for search? #104

Closed kRAyZZed closed 11 years ago

kRAyZZed commented 11 years ago

I am not sure if this is a known issue, I couldnt see it on here - would it be possible to either

A) Rename comics manually - so that I can name it to something I know shows up on usenet

B) Remove/Parse out symbols such as : when doing an automated search?

Basically I have only got 2 comics in my lists that consisently fail to find any results - on both newznab, nzb.su and experimental. They are X-Men: Legacy (2013) Thor: God of Thunder (2013)

And as you can see the thing they have in common is the semi-colon, when I do a search using the api url that mylar uses for newznab, but I take out the semi colon - the results show up, so for me its about getting rid of that pesky semi-colon lol.

evilhero commented 11 years ago

Option A has already been brought up and is on the table (so-to-speak)...just need the time to reconfig things.

Option B should be already present in the development build. On mine, using latest commit, I was able to pull down Thor:

20-Dec-2012 06:45:20 - INFO :: CP Server Thread-5 : Marking Thor: God of Thunder issue: 3.00 as wanted...
20-Dec-2012 06:45:20 - INFO :: CP Server Thread-5 : Shhh be very quiet...I'm looking for Thor: God of Thunder issue: 3.00(2012) using newznab
20-Dec-2012 06:45:20 - INFO :: CP Server Thread-5 : More than one search provider given - trying next one.
20-Dec-2012 06:45:20 - INFO :: CP Server Thread-5 : Hang on - this issue was published between Nov/Dec of 2012...adjusting to 2013 and retrying...
20-Dec-2012 06:45:20 - INFO :: CP Server Thread-5 : Shhh be very quiet...I'm looking for Thor: God of Thunder issue: 3.00(2013) using newznab
20-Dec-2012 06:45:20 - INFO :: CP Server Thread-5 : Found Thor: God of Thunder (2013) issue: 3 using newznab
20-Dec-2012 06:45:20 - INFO :: CP Server Thread-5 : Sucessfully retrieved nzb file using newznab
20-Dec-2012 06:45:21 - INFO :: CP Server Thread-5 : Successfully sent nzb file to SABnzbd
20-Dec-2012 06:45:21 - INFO :: CP Server Thread-5 : Removed temporary save file
found-yes
{'IssueID': u'373307'}
{'NZBName': 'Thor_God_of_Thunder_3_(2013)'}
20-Dec-2012 06:45:21 - INFO :: CP Server Thread-5 : Updating now complete for Thor: God of Thunder issue: 3.00
20-Dec-2012 06:45:36 - INFO :: CP Server Thread-7 : Starting postprocessing for : Thor_God_of_Thunder_3_(2013)
20-Dec-2012 06:45:36 - INFO :: CP Server Thread-7 : Now checking files for Thor: God of Thunder (2013) in /mnt/mediavg/Comics/Thor_God_of_Thunder-(2013)
20-Dec-2012 06:45:36 - INFO :: CP Server Thread-7 : I've found 1 / 3 issues.
20-Dec-2012 06:45:36 - INFO :: CP Server Thread-7 : Post-Processing completed for: Thor: God of Thunder issue: 3.00

Now there was an issue with the : in the directory and another directory issue I came across with this, but the latest commit (just done now) to development has these fixes in it.

kRAyZZed commented 11 years ago

How odd - it has to be a problem with my newznab server or something then as i get the following

20-Dec-2012 11:55:35 - INFO :: CP Server Thread-4 : Marking Thor: God of Thunder 3.00 as Wanted 20-Dec-2012 11:55:35 - DEBUG :: CP Server Thread-4 : Marking issues: ['373307'] as Wanted 20-Dec-2012 11:55:36 - DEBUG :: Thread-13 : there are : 2 search providers you have selected. 20-Dec-2012 11:55:36 - DEBUG :: Thread-13 : newnzb_host: (u'http://localhost/', u'', True) 20-Dec-2012 11:55:36 - INFO :: Thread-13 : Shhh be very quiet...I'm looking for Thor: God of Thunder issue: 3.00(2012) using newznab 20-Dec-2012 11:55:36 - DEBUG :: Thread-13 : using Newznab host of : http://localhost/ 20-Dec-2012 11:55:36 - DEBUG :: Thread-13 : search-url: http://localhost/api?t=search&q=Thor:%20God%20of%20Thunder%20003%20&apikey=&o=xml&cat=7030 20-Dec-2012 11:55:37 - DEBUG :: Thread-13 : search-url: http://localhost/api?t=search&q=Thor:%20God%20of%20Thunder%2003%20&apikey=&o=xml&cat=7030 20-Dec-2012 11:55:38 - DEBUG :: Thread-13 : search-url: http://localhost/api?t=search&q=Thor:%20God%20of%20Thunder%203%20&apikey=&o=xml&cat=7030 20-Dec-2012 11:55:40 - INFO :: Thread-13 : More than one search provider given - trying next one. 20-Dec-2012 11:55:40 - INFO :: Thread-13 : Hang on - this issue was published between Nov/Dec of 2012...adjusting to 2013 and retrying... 20-Dec-2012 11:55:40 - INFO :: Thread-13 : Shhh be very quiet...I'm looking for Thor: God of Thunder issue: 3.00(2013) using newznab 20-Dec-2012 11:55:40 - DEBUG :: Thread-13 : using Newznab host of : http://localhost/ 20-Dec-2012 11:55:40 - DEBUG :: Thread-13 : search-url: http://localhost/api?t=search&q=Thor:%20God%20of%20Thunder%20003%20&apikey=&o=xml&cat=7030 20-Dec-2012 11:55:41 - DEBUG :: Thread-13 : search-url: http://localhost/api?t=search&q=Thor:%20God%20of%20Thunder%2003%20&apikey=&o=xml&cat=7030 20-Dec-2012 11:55:43 - DEBUG :: Thread-13 : search-url: http://localhost/api?t=search&q=Thor:%20God%20of%20Thunder%203%20&apikey=&o=xml&cat=7030 20-Dec-2012 11:55:44 - INFO :: Thread-13 : More than one search provider given - trying next one. 20-Dec-2012 11:55:44 - INFO :: Thread-13 : Shhh be very quiet...I'm looking for Thor: God of Thunder issue: 3.00(2012) using experimental 20-Dec-2012 11:55:46 - DEBUG :: Thread-13 : couldn't find a matching comic 20-Dec-2012 11:55:46 - INFO :: Thread-13 : Hang on - this issue was published between Nov/Dec of 2012...adjusting to 2013 and retrying... 20-Dec-2012 11:55:46 - INFO :: Thread-13 : Shhh be very quiet...I'm looking for Thor: God of Thunder issue: 3.00(2013) using experimental 20-Dec-2012 11:55:48 - DEBUG :: Thread-13 : couldn't find a matching comic

and when it fails to find on newznab it goes to experimental and i get the following

20-Dec-2012 11:55:44 - INFO :: Thread-13 : Shhh be very quiet...I'm looking for Thor: God of Thunder issue: 3.00(2012) using experimental name:Thor: God of Thunder issue:3 year:2012 7 results looking at: Empire Gold Line releases (1920 pixels wide per page) (2012.12.13) -

looking at: Thor God of Thunder 002 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc looking at: Empire Gold Line releases (1920 pixels wide per page) (2012.12.13) -

looking at: Thor God of Thunder 001 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc looking at: 11-14-12 0 Days [65 of 71] looking at: Thor God of Thunder 001 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc looking at: New digital rips, mostly by Empire (2012.12.07) - looking at: Thor God of Thunder 002 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc looking at: 0-Day 2012.12.19 looking at: Thor God of Thunder 003 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc 24558776 Bytes looking at: Thor God of Thunder 003 (2013) (Digital) (Zone-Empire).CBR- INRI - P rimus Illuminatus looking at: 0 Days 11-28-12 [37 of 46] looking at: Thor God of Thunder 002 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc No Results Found name:Thor: God of Thunder issue:3 year:2012 7 results looking at: Empire Gold Line releases (1920 pixels wide per page) (2012.12.13) -

looking at: Thor God of Thunder 002 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc looking at: Empire Gold Line releases (1920 pixels wide per page) (2012.12.13) -

looking at: Thor God of Thunder 001 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc looking at: 11-14-12 0 Days [65 of 71] looking at: Thor God of Thunder 001 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc looking at: New digital rips, mostly by Empire (2012.12.07) - looking at: Thor God of Thunder 002 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc looking at: 0-Day 2012.12.19 looking at: Thor God of Thunder 003 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc 24558776 Bytes looking at: Thor God of Thunder 003 (2013) (Digital) (Zone-Empire).CBR- INRI - P rimus Illuminatus looking at: 0 Days 11-28-12 [37 of 46] looking at: Thor God of Thunder 002 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc No Results Found name:Thor: God of Thunder issue:3 year:2012 7 results looking at: Empire Gold Line releases (1920 pixels wide per page) (2012.12.13) -

looking at: Thor God of Thunder 002 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc looking at: Empire Gold Line releases (1920 pixels wide per page) (2012.12.13) -

looking at: Thor God of Thunder 001 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc looking at: 11-14-12 0 Days [65 of 71] looking at: Thor God of Thunder 001 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc looking at: New digital rips, mostly by Empire (2012.12.07) - looking at: Thor God of Thunder 002 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc looking at: 0-Day 2012.12.19 looking at: Thor God of Thunder 003 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc 24558776 Bytes looking at: Thor God of Thunder 003 (2013) (Digital) (Zone-Empire).CBR- INRI - P rimus Illuminatus looking at: 0 Days 11-28-12 [37 of 46] looking at: Thor God of Thunder 002 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc No Results Found 20-Dec-2012 11:55:46 - INFO :: Thread-13 : Hang on - this issue was published be tween Nov/Dec of 2012...adjusting to 2013 and retrying... 20-Dec-2012 11:55:46 - INFO :: Thread-13 : Shhh be very quiet...I'm looking for Thor: God of Thunder issue: 3.00(2013) using experimental name:Thor: God of Thunder issue:3 year:2013 7 results looking at: Empire Gold Line releases (1920 pixels wide per page) (2012.12.13) -

looking at: Thor God of Thunder 002 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc looking at: Empire Gold Line releases (1920 pixels wide per page) (2012.12.13) -

looking at: Thor God of Thunder 001 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc looking at: 11-14-12 0 Days [65 of 71] looking at: Thor God of Thunder 001 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc looking at: New digital rips, mostly by Empire (2012.12.07) - looking at: Thor God of Thunder 002 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc looking at: 0-Day 2012.12.19 looking at: Thor God of Thunder 003 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc 24558776 Bytes looking at: Thor God of Thunder 003 (2013) (Digital) (Zone-Empire).CBR- INRI - P rimus Illuminatus looking at: 0 Days 11-28-12 [37 of 46] looking at: Thor God of Thunder 002 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc No Results Found name:Thor: God of Thunder issue:3 year:2013 7 results looking at: Empire Gold Line releases (1920 pixels wide per page) (2012.12.13) -

looking at: Thor God of Thunder 002 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc looking at: Empire Gold Line releases (1920 pixels wide per page) (2012.12.13) -

looking at: Thor God of Thunder 001 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc looking at: 11-14-12 0 Days [65 of 71] looking at: Thor God of Thunder 001 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc looking at: New digital rips, mostly by Empire (2012.12.07) - looking at: Thor God of Thunder 002 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc looking at: 0-Day 2012.12.19 looking at: Thor God of Thunder 003 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc 24558776 Bytes looking at: Thor God of Thunder 003 (2013) (Digital) (Zone-Empire).CBR- INRI - P rimus Illuminatus looking at: 0 Days 11-28-12 [37 of 46] looking at: Thor God of Thunder 002 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc No Results Found name:Thor: God of Thunder issue:3 year:2013 7 results looking at: Empire Gold Line releases (1920 pixels wide per page) (2012.12.13) -

looking at: Thor God of Thunder 002 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc looking at: Empire Gold Line releases (1920 pixels wide per page) (2012.12.13) -

looking at: Thor God of Thunder 001 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc looking at: 11-14-12 0 Days [65 of 71] looking at: Thor God of Thunder 001 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc looking at: New digital rips, mostly by Empire (2012.12.07) - looking at: Thor God of Thunder 002 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc looking at: 0-Day 2012.12.19 looking at: Thor God of Thunder 003 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc 24558776 Bytes looking at: Thor God of Thunder 003 (2013) (Digital) (Zone-Empire).CBR- INRI - P rimus Illuminatus looking at: 0 Days 11-28-12 [37 of 46] looking at: Thor God of Thunder 002 (2013) (Digital) (Zone-Empire).cbr looking at: yEnc No Results Found

As you can see it clearly finds the file...but just says no lol - ill play around with my settings etc - but when i copy and paste that api url into my browser for my newznab - it gets 0 results, when I remove the : it gets the results from newznab - but either way its gotta be an issue on my end or something.

Thanks for the response mate - also dude your logs say its 6:45am! get some sleep mate! :P

evilhero commented 11 years ago

Well your newznab search results look like mine did initially - are you able to search successfully within your newznab ? If you don't have sphinx running, or not running properly (as mine was), you wouldn't get any search results when doing api searches, let alone from the within the site itself.

The experimental search probably doesn't have the exceptions for : built in, so I'll have to add those in, but that's an entirely different searching method than nzb.su/dognzb/newznabs :)

kRAyZZed commented 11 years ago

If im completely honest with you, I dont even have sphinx enabled/installed - all the other searches have been working fine without it - I was informed by the newznab devs that sphinx was just to ease speed of database searches, more of a benefit on a larger userbase - but not ideal for a single user install like my own.

I can find Thor God of Thunder fine within newznab and via api calls - but not Thor: God of Thunder - I guess sphinx how it is named/indexed for the API call - I am about to try to install sphinx now :D

evilhero commented 11 years ago

Yeah that's really weird - I put on sphinx just because in all the docs I was reading, it never once said it was an optional requirement. Are you using the latest commit for Mylar? I'm pretty sure I didn't change anything with the newznab portions, but it was pretty early in the morning as you had pointed out so anything is possible.

kRAyZZed commented 11 years ago

Yeah, i am using the most recent development build commit - trying to get sphinx working at the moment however its being a bit of a bugger (i run newznab on my windows box lol) - i will report back if it fixes it for me :D

kRAyZZed commented 11 years ago

OK evilhero after several hours of pulling my hair out trying to get sphinx running just right on Windows 8 - I finally got it installed - and yes you are right, it seems that sphinx indexing makes it possible to search without some of the special characters - such as semi colon etc taken into account. So I am going to close this bug/issue now as its not an issue with mylar, more a requirement for mylar :D - tbh most people use sphinx, its just those of us running it on a windows box that went for a simple solution that wont have it lol.