Tweaks for dealing with unicode issue "number"

Updated release_notes


git-svn-id: http://comictagger.googlecode.com/svn/trunk@563 6c5673fe-1810-88d6-992b-cd32ca31540c
This commit is contained in:
beville@gmail.com 2013-03-30 16:31:56 +00:00
parent a804a10e0e
commit 76e6666a79
5 changed files with 21 additions and 7 deletions

View File

@ -258,7 +258,7 @@ class ComicVineTalker(QObject):
found = False
for record in issues_list_results:
if IssueString(issue_number).asFloat() is None:
if IssueString(issue_number).asString() is None:
issue_number = 1
if IssueString(record['issue_number']).asString().lower() == IssueString(issue_number).asString().lower():
found = True
@ -306,7 +306,6 @@ class ComicVineTalker(QObject):
metadata.series = issue_results['volume']['name']
num_s = IssueString(issue_results['issue_number']).asString()
metadata.issue = num_s
metadata.title = issue_results['name']
@ -374,6 +373,8 @@ class ComicVineTalker(QObject):
def cleanup_html( self, string):
if string is None:
return ""
# remove all newlines first
string = string.replace("\n", "")
@ -391,8 +392,6 @@ class ComicVineTalker(QObject):
newstring = newstring.replace('&','&')
newstring = newstring.strip()
return newstring
def fetchIssueDate( self, issue_id ):

View File

@ -463,9 +463,9 @@ class IssueIdentifier:
shortlist.append( (series, cv_series_results, issue) )
if keys['year'] is None:
self.log_msg( "Found {0} series that have an issue #{1}".format(len(shortlist), keys['issue_number']) )
self.log_msg( u"Found {0} series that have an issue #{1}".format(len(shortlist), keys['issue_number']) )
else:
self.log_msg( "Found {0} series that have an issue #{1} from {2}".format(len(shortlist), keys['issue_number'], keys['year'] ))
self.log_msg( u"Found {0} series that have an issue #{1} from {2}".format(len(shortlist), keys['issue_number'], keys['year'] ))
# now we have a shortlist of volumes with the desired issue number

View File

@ -897,7 +897,7 @@ class TaggerWindow( QtGui.QMainWindow):
def queryOnline(self, autoselect=False):
issue_number = str(self.leIssueNum.text()).strip()
issue_number = unicode(self.leIssueNum.text()).strip()
if autoselect and issue_number == "":
QtGui.QMessageBox.information(self,"Automatic Identify Search", "Can't auto-identify without an issue number (yet!)")

View File

@ -1,3 +1,9 @@
---------------------------------
1.1.5-beta - 30-Mar-2013
---------------------------------
* More updates for handling changes to ComicVine API and result sets
* Even better handling of non-numeric issue "numbers" ("½", "X")
---------------------------------
1.1.4-beta - 27-Mar-2013
---------------------------------

View File

@ -9,10 +9,19 @@ Docs:
Auto-Tagging Tips:
Multiple Passes with different options
Feature Requests:
Remember last sorted column in file list
Re-zip (to remove compression)
Move CBR to other folder after conversion to ZIP
AUto-rename on auto-tag
-----------------------------------------------------
Bugs
-----------------------------------------------------
Non-numeric issues?? Filename parsing... can we only rely on '#'??
Unicode search on mac doesn't work
Zip flakes out when filename differs from index (or whatever) i.e "\" vs "/". Python issue
-----------------------------------------------------