Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
andgineer committed Mar 30, 2024
1 parent 9fea5ae commit 1d693dc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/audiobook_tags/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI for fixing mp3 tags for iOS audiobooks."""

import sys
from argparse import ArgumentParser, Namespace
from typing import Tuple
Expand Down Expand Up @@ -37,7 +38,8 @@ def get_opts() -> Tuple[Namespace, ArgumentParser]:
default=DEFAULT_ENCODING,
dest="encoding",
help=(
f'mp3 tags encoding. "{OPT_ENCODING_NO_ENCODING}" if you do not need mp3 tags encoding fix. '
f'mp3 tags encoding. "{OPT_ENCODING_NO_ENCODING}" '
f"if you do not need mp3 tags encoding fix. "
f'By default "{DEFAULT_ENCODING}".'
),
)
Expand All @@ -57,16 +59,20 @@ def get_opts() -> Tuple[Namespace, ArgumentParser]:
help=(
f"""Sort files and set mp3 tag `track_num`:
--num="{OPT_TRACK_NUM_BY_FILE_NAMES}" - sort by names;
--num="{OPT_TRACK_NUM_BY_TAG_TITLE}<TAG>" - sort by mp3 tag with name <TAG>.
For example to sort by title tag use --num="{OPT_TRACK_NUM_BY_TAG_TITLE}title"."""
--num="{OPT_TRACK_NUM_BY_TAG_TITLE}<TAG>" - sort by mp3 tag with name <TAG>.
For example to sort by title tag use
--num="{OPT_TRACK_NUM_BY_TAG_TITLE}title"."""
),
)
parser.add_argument(
"--prefix",
"-p",
default=None,
dest="title_prefix",
help="Add prefix to title tags. By default `{track:04} - ` if `--num` and no prefix if not.",
help=(
"Add prefix to title tags. By default `{track:04} - ` "
"if `--num` and no prefix if not."
),
)
parser.add_argument(
"--dry",
Expand Down
1 change: 1 addition & 0 deletions src/audiobook_tags/tags.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Fix audiobook tags in mp3 files."""

import pathlib
from argparse import Namespace
from typing import List, Optional
Expand Down

0 comments on commit 1d693dc

Please sign in to comment.