Search fails on issues with decimals #26

Closed
ecec opened this Issue Sep 24, 2012 · 2 comments

Comments

Projects
None yet
2 participants

ecec commented Sep 24, 2012

Noticed this one while searching for Unwritten 32.5 and 31.5:

Exception in thread Thread-13:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 552, in __bootstrap_inner
self.run()
File "C:\Python27\lib\threading.py", line 505, in run
self.__target(_self.__args, *_self._kwargs)
File "C:\Users\Administrator\Desktop\mylar\mylar\search.py", line 555, in sear
chforissue
foundNZB = search_init(result['ComicName'], result['Issue_Number'], str(Comi
cYear), comic['ComicYear'])
File "C:\Users\Administrator\Desktop\mylar\mylar\search.py", line 81, in searc
h_init
findit = NZB_SEARCH(ComicName, IssueNumber, ComicYear, SeriesYear, nzbprov,
nzbpr)
File "C:\Users\Administrator\Desktop\mylar\mylar\search.py", line 323, in NZB

SEARCH
if int(findcomiciss[findloop]) == int(comiss):
ValueError: invalid literal for int() with base 10: '032.5'

For the record, both issues are on nzb.su. Probably not a huge priority at the moment! :)

Owner

evilhero commented Sep 24, 2012

No worries - I can see in the code what needs to be fixed for doing it. It'll cause that error on any of the providers, so some code changes on decimalization and it should be good to go. I'll commit the changes later tonight once I get a chance to sit down in a quiet room :)

evilhero was assigned Sep 24, 2012

Owner

evilhero commented Jan 19, 2013

This is working now in both dev / master builds.

evilhero closed this Jan 19, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment