From a5d39a88c8bd68a00d312678f26a132462428a6b Mon Sep 17 00:00:00 2001 From: "beville@gmail.com" Date: Tue, 11 Dec 2012 17:57:59 +0000 Subject: [PATCH] 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 --- comicvinetalker.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/comicvinetalker.py b/comicvinetalker.py index 52792e6..23de2c0 100644 --- a/comicvinetalker.py +++ b/comicvinetalker.py @@ -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 )