Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
infojunkie committed May 26, 2024
1 parent 49d9a14 commit e1050e7
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 32 deletions.
38 changes: 11 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ SYNOPSIS
discogs-tag tag RELEASE <flags>

DESCRIPTION
Tag the audio files with the given Discogs release.
The skip flag can take one or more of the following values, comma-separated:
artist, composer, title, position, date, subtrack, album, genre, albumartist

POSITIONAL ARGUMENTS
RELEASE
Expand All @@ -28,22 +29,13 @@ FLAGS
Default: False
-i, --ignore=IGNORE
Default: False
--skip_artist=SKIP_ARTIST
Default: False
--skip_title=SKIP_TITLE
Default: False
--skip_composer=SKIP_COMPOSER
Default: False
--skip_position=SKIP_POSITION
Default: False
--skip_year=SKIP_YEAR
Default: False
--skip_subtrack=SKIP_SUBTRACK
Default: False
-s, --skip=SKIP
Type: Optional[]
Default: None

NOTES
You can also use flags syntax for POSITIONAL ARGUMENTS
```
q```
```shell
NAME
discogs-tag copy - Copy the audio tags from source to destination folders.
Expand All @@ -52,7 +44,8 @@ SYNOPSIS
discogs-tag copy SRC <flags>

DESCRIPTION
Copy the audio tags from source to destination folders.
The skip flag can take one or more of the following values, comma-separated:
artist, composer, title, position, date, subtrack, album, genre, albumartist

POSITIONAL ARGUMENTS
SRC
Expand All @@ -64,18 +57,9 @@ FLAGS
Default: False
-i, --ignore=IGNORE
Default: False
--skip_artist=SKIP_ARTIST
Default: False
--skip_title=SKIP_TITLE
Default: False
--skip_composer=SKIP_COMPOSER
Default: False
--skip_position=SKIP_POSITION
Default: False
--skip_year=SKIP_YEAR
Default: False
--skip_subtrack=SKIP_SUBTRACK
Default: False
-s, --skip=SKIP
Type: Optional[]
Default: None

NOTES
You can also use flags syntax for POSITIONAL ARGUMENTS
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "discogs-tag"
version = "0.3.1"
version = "0.3.2"
description = "A rudimentary audio tagger based on Discogs metadata."
authors = ["infojunkie <[email protected]>"]
readme = "README.md"
Expand Down
16 changes: 12 additions & 4 deletions src/discogs_tag/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ def tag(
ignore=False,
skip=None
):
"""Tag the audio files with the given Discogs release."""
"""Tag the audio files with the given Discogs release.
The skip flag can take one or more of the following values, comma-separated:
artist, composer, title, position, date, subtrack, album, genre, albumartist
"""
options = parse_options(locals())
request = urllib.request.Request(f'https://api.discogs.com/releases/{release}', headers = {
'User-Agent': f'{__NAME__} {__VERSION__}'
Expand All @@ -48,11 +53,14 @@ def copy(
ignore=False,
skip=None
):
"""Copy the audio tags from source to destination folders."""
"""Copy the audio tags from source to destination folders.
The skip flag can take one or more of the following values, comma-separated:
artist, composer, title, position, date, subtrack, album, genre, albumartist
"""
options = parse_options(locals())
src_files = get_files(src)
pprint(src_files)
return
if not src_files:
raise Exception(f'No source files found at {src}. Aborting.')

Expand Down

0 comments on commit e1050e7

Please sign in to comment.