Implemented GUI for syng #2

Merged
christofsteel merged 18 commits from gui into main 2023-12-18 19:48:28 +01:00
4 changed files with 8 additions and 8 deletions
Showing only changes of commit 2efea7c2f9 - Show all commits

View file

@ -18,7 +18,7 @@ class FileBasedSource(Source):
config_schema = Source.config_schema | {
"extensions": (
list,
"List of filename extensions (mp3+cdg, mp4, ...)",
"List of filename extensions\n(mp3+cdg, mp4, ...)",
"mp3+cdg",
)
}

View file

@ -40,7 +40,7 @@ class S3Source(FileBasedSource):
"secret_key": (str, "Secret Key of the s3", ""),
"secure": (bool, "Use SSL", True),
"bucket": (str, "Bucket of the s3", ""),
"tmp_dir": (str, "Folder for temporary download", "/tmp/syng"),
"tmp_dir": (str, "Folder for\ntemporary download", "/tmp/syng"),
}
def __init__(self, config: dict[str, Any]):

View file

@ -52,12 +52,12 @@ class YoutubeSource(Source):
source_name = "youtube"
config_schema = Source.config_schema | {
"channels": (list, "A list channels to search in", []),
"tmp_dir": (str, "Folder for temporary download", "/tmp/syng"),
"max_res": (int, "Maximum resolution to download", 720),
"channels": (list, "A list channels\nto search in", []),
"tmp_dir": (str, "Folder for\ntemporary download", "/tmp/syng"),
"max_res": (int, "Maximum resolution\nto download", 720),
"start_streaming": (
bool,
"Start streaming if download is not complete",
"Start streaming if\ndownload is not complete",
False,
),
}

View file

@ -5,8 +5,8 @@
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Syng Rocks!</title>
<script type="module" crossorigin src="/assets/index.8572a105.js"></script>
<link rel="stylesheet" href="/assets/index.9110b89b.css">
<script type="module" crossorigin src="/assets/index.20e81f9f.js"></script>
<link rel="stylesheet" href="/assets/index.b030f504.css">
</head>
<body>
<div id="app"></div>