Skip to content

Commit

Permalink
More ENV vars
Browse files Browse the repository at this point in the history
  • Loading branch information
AngellusMortis committed Jul 18, 2021
1 parent 55330aa commit 6e72529
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
History
=======

0.2.3 (2021-08-17)
------------------

* Adds env var for `CLIPlayer` `channel-id`: `SXM_CLI_CHANNEL_ID`
* Adds env var for `CLIPlayer` `filename`: `SXM_CLI_FILENAME`

0.2.2 (2021-08-17)
------------------

Expand Down
2 changes: 1 addition & 1 deletion sxm_player/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__author__ = """Christopher Bailey"""
__email__ = "[email protected]"
__version__ = "0.2.2"
__version__ = "0.2.3"
2 changes: 2 additions & 0 deletions sxm_player/players/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ class CLIPlayer(BasePlayer):
required=True,
type=str,
help="SXM Channel to Player",
envvar="SXM_CLI_CHANNEL_ID",
),
Option(
"--filename",
default="player.mp3",
type=click.Path(dir_okay=False, writable=True, resolve_path=True),
help="Path for output mp3 file",
envvar="SXM_CLI_FILENAME",
),
]

Expand Down

0 comments on commit 6e72529

Please sign in to comment.