Skip to content

Commit

Permalink
Split author/narrator add functions
Browse files Browse the repository at this point in the history
  • Loading branch information
djdembeck committed Aug 29, 2021
1 parent 12e0b09 commit 93da952
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Contents/Code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,8 +711,8 @@ def compile_metadata(self, helper):
if helper.genre_child:
helper.metadata.genres.add(helper.genre_child)

self.parse_author_narrator(helper)

self.add_narrators_to_moods(helper)
self.add_authors_to_moods(helper)
self.parse_series(helper)

# Other metadata
Expand Down Expand Up @@ -743,7 +743,7 @@ def compile_metadata(self, helper):
helper.metadata.collections.add(helper.series2)
helper.writeInfo()

def parse_author_narrator(self, helper):
def add_narrators_to_moods(self, helper):
# Add Narrators to Styles
narrators_list = helper.narrator.split(",")
narr_contributors_list = [
Expand All @@ -759,6 +759,7 @@ def parse_author_narrator(self, helper):
]:
helper.metadata.styles.add(narrator.strip())

def add_authors_to_moods(self, helper):
# Add Authors to Moods
author_list = helper.author.split(",")
author_contributers_list = [
Expand Down
2 changes: 1 addition & 1 deletion Contents/Code/update_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ def writeInfo(self):
]
log.metadata_arrs(multi_arr, log_level="info")

log.separator(log_level="info")
log.separator(log_level="info")

0 comments on commit 93da952

Please sign in to comment.