diff --git a/README.rst b/README.rst index 1bc0123..c622be0 100644 --- a/README.rst +++ b/README.rst @@ -179,16 +179,16 @@ mscx-manager meta - combined_subtitle - combined_title - metatag_arranger - - metatag_composer + - metatag_audio_com_urlcomposer - metatag_copyright - metatag_creation_date - metatag_lyricist - metatag_movement_number - metatag_movement_title - - metatag_platform + - metatag_msc_versionplatform - metatag_poet - metatag_source - - metatag_translator + - metatag_source_revision_idsubtitletranslator - metatag_work_number - metatag_work_title - vbox_composer @@ -263,16 +263,16 @@ mscx-manager rename - combined_subtitle - combined_title - metatag_arranger - - metatag_composer + - metatag_audio_com_urlcomposer - metatag_copyright - metatag_creation_date - metatag_lyricist - metatag_movement_number - metatag_movement_title - - metatag_platform + - metatag_msc_versionplatform - metatag_poet - metatag_source - - metatag_translator + - metatag_source_revision_idsubtitletranslator - metatag_work_number - metatag_work_title - readonly_abspath diff --git a/docs/cli.rst b/docs/cli.rst index 709a2f6..b62e85f 100644 --- a/docs/cli.rst +++ b/docs/cli.rst @@ -143,16 +143,16 @@ mscx-manager meta - combined_subtitle - combined_title - metatag_arranger - - metatag_composer + - metatag_audio_com_urlcomposer - metatag_copyright - metatag_creation_date - metatag_lyricist - metatag_movement_number - metatag_movement_title - - metatag_platform + - metatag_msc_versionplatform - metatag_poet - metatag_source - - metatag_translator + - metatag_source_revision_idsubtitletranslator - metatag_work_number - metatag_work_title - vbox_composer @@ -227,16 +227,16 @@ mscx-manager rename - combined_subtitle - combined_title - metatag_arranger - - metatag_composer + - metatag_audio_com_urlcomposer - metatag_copyright - metatag_creation_date - metatag_lyricist - metatag_movement_number - metatag_movement_title - - metatag_platform + - metatag_msc_versionplatform - metatag_poet - metatag_source - - metatag_translator + - metatag_source_revision_idsubtitletranslator - metatag_work_number - metatag_work_title - readonly_abspath diff --git a/mscxyz/meta.py b/mscxyz/meta.py index 6b43e86..c50109e 100644 --- a/mscxyz/meta.py +++ b/mscxyz/meta.py @@ -146,17 +146,20 @@ class MetaTag: fields = ( "arranger", - "audio_com_url" "composer", + "audio_com_url", + "composer", "copyright", "creation_date", "lyricist", "movement_number", "movement_title", - "msc_version" + "msc_version", "platform", "poet", "source", - "source_revision_id" "subtitle" "translator", + "source_revision_id", + "subtitle", + "translator", "work_number", "work_title", ) diff --git a/mscxyz/rename.py b/mscxyz/rename.py index 5554d1a..9b7da9a 100644 --- a/mscxyz/rename.py +++ b/mscxyz/rename.py @@ -11,8 +11,9 @@ from tmep.format import alphanum, asciify, nowhitespace from mscxyz.score import Score -from mscxyz.utils import color from mscxyz.settings import get_args +from mscxyz.utils import color + def create_dir(path: str) -> None: try: diff --git a/mscxyz/settings.py b/mscxyz/settings.py index 662c4d5..046697c 100644 --- a/mscxyz/settings.py +++ b/mscxyz/settings.py @@ -66,6 +66,7 @@ class DefaultArguments: args = DefaultArguments() + def get_args() -> DefaultArguments: """Get the ``args`` object (the ``argparse`` object) which is stored in the .settings.py submodule for all other submodules. @@ -74,6 +75,7 @@ def get_args() -> DefaultArguments: """ return args + def set_args(new_args: DefaultArguments) -> DefaultArguments: """Set the ``args`` object (the ``argparse`` object) which is stored in the .settings.py submodule for all other submodules to import. @@ -83,7 +85,6 @@ def set_args(new_args: DefaultArguments) -> DefaultArguments: return args - def reset_args() -> DefaultArguments: """Reset the ``args`` object (the ``argparse`` object) which is stored in the .settings.py submodule for all other submodules to import. @@ -92,6 +93,7 @@ def reset_args() -> DefaultArguments: args = DefaultArguments() return args + def parse_config_ini( relpath: Optional[str] = None, ) -> Optional[configparser.ConfigParser]: