Made sure the penciler isn't set a primary if more than artist already exists

git-svn-id: http://comictagger.googlecode.com/svn/trunk@248 6c5673fe-1810-88d6-992b-cd32ca31540c
This commit is contained in:
beville@gmail.com 2012-12-11 17:57:59 +00:00
parent 2acf2f60f3
commit a5d39a88c8

View File

@ -239,12 +239,13 @@ class ComicVineTalker(QObject):
break
if lone_credit is not None:
lone_credit['primary'] = True
return lone_credit
return lone_credit, count
#need to loop three times, once for 'writer', 'artist', and then 'penciler' if no artist
setLonePrimary( 'writer' )
if setLonePrimary( 'artist' ) is None:
c = setLonePrimary( 'penciler' )
c, count = setLonePrimary( 'artist' )
if c is None and count == 0:
c, count = setLonePrimary( 'penciler' )
if c is not None:
c['primary'] = False
metadata.addCredit( c['person'], 'Artist', True )