diff --git a/comictaggerlib/cbltransformer.py b/comictaggerlib/cbltransformer.py
index 7290fb3..27459d9 100644
--- a/comictaggerlib/cbltransformer.py
+++ b/comictaggerlib/cbltransformer.py
@@ -74,6 +74,9 @@ class CBLTransformer:
if self.settings.copy_locations_to_tags:
add_string_list_to_tags( self.metadata.locations )
+
+ if self.settings.copy_storyarcs_to_tags:
+ add_string_list_to_tags( self.metadata.storyArc )
if self.settings.copy_notes_to_comments:
if self.metadata.notes is not None:
diff --git a/comictaggerlib/settings.py b/comictaggerlib/settings.py
index b5368a7..4cc3f90 100644
--- a/comictaggerlib/settings.py
+++ b/comictaggerlib/settings.py
@@ -113,6 +113,7 @@ class ComicTaggerSettings:
self.copy_characters_to_tags = False
self.copy_teams_to_tags = False
self.copy_locations_to_tags = False
+ self.copy_storyarcs_to_tags = False
self.copy_notes_to_comments = False
self.copy_weblink_to_comments = False
self.apply_cbl_transform_on_cv_import = False
@@ -252,7 +253,9 @@ class ComicTaggerSettings:
if self.config.has_option('cbl_transform', 'copy_locations_to_tags'):
self.copy_locations_to_tags = self.config.getboolean( 'cbl_transform', 'copy_locations_to_tags' )
if self.config.has_option('cbl_transform', 'copy_notes_to_comments'):
- self.copy_notes_to_comments = self.config.getboolean( 'cbl_transform', 'copy_notes_to_comments' )
+ self.copy_notes_to_comments = self.config.getboolean( 'cbl_transform', 'copy_notes_to_comments' )
+ if self.config.has_option('cbl_transform', 'copy_storyarcs_to_tags'):
+ self.copy_storyarcs_to_tags = self.config.getboolean( 'cbl_transform', 'copy_storyarcs_to_tags' )
if self.config.has_option('cbl_transform', 'copy_weblink_to_comments'):
self.copy_weblink_to_comments = self.config.getboolean( 'cbl_transform', 'copy_weblink_to_comments' )
if self.config.has_option('cbl_transform', 'apply_cbl_transform_on_cv_import'):
@@ -328,6 +331,7 @@ class ComicTaggerSettings:
self.config.set( 'cbl_transform', 'copy_characters_to_tags', self.copy_characters_to_tags )
self.config.set( 'cbl_transform', 'copy_teams_to_tags', self.copy_teams_to_tags )
self.config.set( 'cbl_transform', 'copy_locations_to_tags', self.copy_locations_to_tags )
+ self.config.set( 'cbl_transform', 'copy_storyarcs_to_tags', self.copy_storyarcs_to_tags )
self.config.set( 'cbl_transform', 'copy_notes_to_comments', self.copy_notes_to_comments )
self.config.set( 'cbl_transform', 'copy_weblink_to_comments', self.copy_weblink_to_comments )
self.config.set( 'cbl_transform', 'apply_cbl_transform_on_cv_import', self.apply_cbl_transform_on_cv_import )
diff --git a/comictaggerlib/settingswindow.py b/comictaggerlib/settingswindow.py
index 2f167e6..176edbb 100644
--- a/comictaggerlib/settingswindow.py
+++ b/comictaggerlib/settingswindow.py
@@ -140,6 +140,8 @@ class SettingsWindow(QtGui.QDialog):
self.cbxCopyTeamsToTags.setCheckState( QtCore.Qt.Checked)
if self.settings.copy_locations_to_tags:
self.cbxCopyLocationsToTags.setCheckState( QtCore.Qt.Checked)
+ if self.settings.copy_storyarcs_to_tags:
+ self.cbxCopyStoryArcsToTags.setCheckState( QtCore.Qt.Checked)
if self.settings.copy_notes_to_comments:
self.cbxCopyNotesToComments.setCheckState( QtCore.Qt.Checked)
if self.settings.copy_weblink_to_comments:
@@ -188,6 +190,7 @@ class SettingsWindow(QtGui.QDialog):
self.settings.copy_characters_to_tags = self.cbxCopyCharactersToTags.isChecked()
self.settings.copy_teams_to_tags = self.cbxCopyTeamsToTags.isChecked()
self.settings.copy_locations_to_tags = self.cbxCopyLocationsToTags.isChecked()
+ self.settings.copy_storyarcs_to_tags = self.cbxCopyStoryArcsToTags.isChecked()
self.settings.copy_notes_to_comments = self.cbxCopyNotesToComments.isChecked()
self.settings.copy_weblink_to_comments = self.cbxCopyWebLinkToComments.isChecked()
self.settings.apply_cbl_transform_on_cv_import = self.cbxApplyCBLTransformOnCVIMport.isChecked()
diff --git a/comictaggerlib/ui/settingswindow.ui b/comictaggerlib/ui/settingswindow.ui
index 34cd161..c8d0765 100644
--- a/comictaggerlib/ui/settingswindow.ui
+++ b/comictaggerlib/ui/settingswindow.ui
@@ -412,10 +412,17 @@
11
21
251
- 182
+ 192
+ -
+
+
+ Copy Locations to Generic Tags
+
+
+
-
@@ -437,27 +444,27 @@
- -
-
-
- Copy Locations to Generic Tags
-
-
-
- -
+
-
Copy Notes to Comments
- -
+
-
Copy Web Link to Comments
+ -
+
+
+ Copy Story Arcs to Generic Tags
+
+
+