mirror of
https://github.com/nova-r/fediplug.git
synced 2025-03-10 23:59:04 +01:00
17 lines
431 B
Python
17 lines
431 B
Python
'''Environment variable management.'''
|
|
|
|
from os import getenv
|
|
|
|
from dotenv import load_dotenv, find_dotenv
|
|
|
|
def api_base_url():
|
|
return getenv('FEDIPLAY_API_BASE_URL')
|
|
|
|
def no_check_certificate():
|
|
return bool(getenv('FEDIPLAY_NO_CHECK_CERTIFICATE'))
|
|
|
|
def play_command():
|
|
return (getenv('FEDIPLAY_PLAY_COMMAND') or
|
|
'ffplay -v 0 -nostats -hide_banner -autoexit -nodisp {filename}')
|
|
|
|
load_dotenv(find_dotenv())
|