mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-06 19:25:34 +00:00

+ change process name in manage.py + update db query to save show albums as single, as an integer + enable periodic scans + misc
35 lines
964 B
Python
35 lines
964 B
Python
from app.settings import ALLARGS
|
|
from tabulate import tabulate
|
|
|
|
args = ALLARGS
|
|
|
|
help_args_list = [
|
|
["--help", "-h", "Show this help message"],
|
|
["--version", "-v", "Show the app version"],
|
|
["--host", "", "Set the host"],
|
|
["--port", "", "Set the port"],
|
|
["--config", "", "Set the config path"],
|
|
["--no-periodic-scan", "-nps", "Disable periodic scan"],
|
|
[
|
|
"--scan-interval",
|
|
"-psi",
|
|
"Set the periodic scan interval in seconds. Default is 300 seconds (5 minutes)",
|
|
],
|
|
[
|
|
"--build",
|
|
"",
|
|
"Build the application (in development)",
|
|
],
|
|
]
|
|
|
|
HELP_MESSAGE = f"""
|
|
Swing Music is a beautiful, self-hosted music player for your
|
|
local audio files. Like a cooler Spotify ... but bring your own music.
|
|
|
|
Usage: swingmusic [options]
|
|
|
|
{tabulate(help_args_list, headers=["Option", "Short", "Description"], tablefmt="markdown", maxcolwidths=[None, None, 44])}
|
|
"""
|
|
|
|
"80s, 90s, the noughties and today"
|