cli/ytrssil/constants.py

14 lines
323 B
Python
Raw Normal View History

2021-07-30 11:48:32 +02:00
import os
config_prefix: str
try:
config_prefix = os.environ['XDG_CONFIG_HOME']
except KeyError:
config_prefix = os.path.expanduser('~/.config')
config_dir: str = os.path.join(config_prefix, 'ytrssil')
mpv_options: list[str] = [
'--no-terminal',
'--ytdl-format=bestvideo[height<=?1080]+bestaudio/best',
2021-07-30 11:48:32 +02:00
]