stvhwrd/SmoothStreamsTV-playlist

Use a separate user config/credentials file

Opened this issue · 2 comments

This file should be generated on first run.

If no configuration file exists,

  • "Would you like to save your credentials to a local file?"

If "yes", save this preference and all following credentials. If "no", save this preference and don't ask again.

This is added to the PR that I just submitted.

Update: Environment variables are currently supported. This was made necessary by implementation of CI.

Those variables must be named:
SSTV_USERNAME,
SSTV_PASSWORD,
SSTV_HOST,
SSTV_SERVER

Usage of environment variables is invoked with the --env or -e flags at runtime, like:

$ python3 sstv-playlist.py --env

For further information on environment variables, see Twilio's blog post.