Skip to content

Commit

Permalink
Fix some errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef-Friedrich committed Jan 5, 2024
1 parent d009ef4 commit 4bc91c1
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 17 deletions.
12 changes: 6 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions docs/cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions mscxyz/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
Expand Down
3 changes: 2 additions & 1 deletion mscxyz/rename.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion mscxyz/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -92,6 +93,7 @@ def reset_args() -> DefaultArguments:
args = DefaultArguments()
return args


def parse_config_ini(
relpath: Optional[str] = None,
) -> Optional[configparser.ConfigParser]:
Expand Down

0 comments on commit 4bc91c1

Please sign in to comment.