Skip to content

Commit

Permalink
Fix credits
Browse files Browse the repository at this point in the history
  • Loading branch information
lordwelch committed May 22, 2024
1 parent a6e11a8 commit c1728ef
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions comicinfoxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,29 +192,29 @@ def assign(cr_entry: str, md_entry: Any) -> None:
# first, loop thru credits, and build a list for each role that CIX
# supports
for credit in metadata.credits:
if credit['role'].casefold() in GenericMetadata.writer_synonyms:
credit_writer_list.append(credit['person'].replace(',', ''))
if credit.role.casefold() in GenericMetadata.writer_synonyms:
credit_writer_list.append(credit.person.replace(',', ''))

if credit['role'].casefold() in GenericMetadata.penciller_synonyms:
credit_penciller_list.append(credit['person'].replace(',', ''))
if credit.role.casefold() in GenericMetadata.penciller_synonyms:
credit_penciller_list.append(credit.person.replace(',', ''))

if credit['role'].casefold() in GenericMetadata.inker_synonyms:
credit_inker_list.append(credit['person'].replace(',', ''))
if credit.role.casefold() in GenericMetadata.inker_synonyms:
credit_inker_list.append(credit.person.replace(',', ''))

if credit['role'].casefold() in GenericMetadata.colorist_synonyms:
credit_colorist_list.append(credit['person'].replace(',', ''))
if credit.role.casefold() in GenericMetadata.colorist_synonyms:
credit_colorist_list.append(credit.person.replace(',', ''))

if credit['role'].casefold() in GenericMetadata.letterer_synonyms:
credit_letterer_list.append(credit['person'].replace(',', ''))
if credit.role.casefold() in GenericMetadata.letterer_synonyms:
credit_letterer_list.append(credit.person.replace(',', ''))

if credit['role'].casefold() in GenericMetadata.cover_synonyms:
credit_cover_list.append(credit['person'].replace(',', ''))
if credit.role.casefold() in GenericMetadata.cover_synonyms:
credit_cover_list.append(credit.person.replace(',', ''))

if credit['role'].casefold() in GenericMetadata.editor_synonyms:
credit_editor_list.append(credit['person'].replace(',', ''))
if credit.role.casefold() in GenericMetadata.editor_synonyms:
credit_editor_list.append(credit.person.replace(',', ''))

if credit['role'].casefold() in GenericMetadata.translator_synonyms:
credit_translator_list.append(credit['person'].replace(',', ''))
if credit.role.casefold() in GenericMetadata.translator_synonyms:
credit_translator_list.append(credit.person.replace(',', ''))

assign('Series', md.series)
assign('Number', md.issue)
Expand Down

0 comments on commit c1728ef

Please sign in to comment.