Remove parsing of title. We're back to how it was before, except now we get 'none' instead of empty string.

git-svn-id: http://comictagger.googlecode.com/svn/trunk@566 6c5673fe-1810-88d6-992b-cd32ca31540c
This commit is contained in:
beville@gmail.com 2013-04-02 14:11:00 +00:00
parent 76e6666a79
commit b22c25f53f
2 changed files with 4 additions and 9 deletions

View File

@ -184,7 +184,7 @@ class ComicVineTalker(QObject):
return cached_volume_result
volume_url = self.api_base_url + "/volume/" + CVTypeID.Volume + "-" + str(series_id) + "/?api_key=" + self.api_key + "&format=json"
volume_url = self.api_base_url + "/volume/" + CVTypeID.Volume + "-" + str(series_id) + "/?api_key=" + self.api_key + "&field_list=name,id,start_year,publisher,count_of_issues&format=json"
content = self.getUrlContent(volume_url)
cv_response = json.loads(content)
@ -308,10 +308,6 @@ class ComicVineTalker(QObject):
num_s = IssueString(issue_results['issue_number']).asString()
metadata.issue = num_s
metadata.title = issue_results['name']
# ComicVine gives redundant info in the title. Strip out the
# volume name and issue number
metadata.title = re.sub( ".* #.+ - ", "", metadata.title )
metadata.publisher = volume_results['publisher']['name']

View File

@ -117,10 +117,9 @@ class IssueSelectionWindow(QtGui.QDialog):
self.twList.setItem(row, 0, item)
item_text = record['name']
# ComicVine gives redundant info in the title. Strip out the
# volume name and issue number
item_text = re.sub( ".* #.+ - ", "", item_text )
if item_text is None:
item_text = ""
item = QtGui.QTableWidgetItem(item_text)
item.setData( QtCore.Qt.ToolTipRole, item_text )
item.setFlags(QtCore.Qt.ItemIsSelectable| QtCore.Qt.ItemIsEnabled)