From 2efea7c2f9eef1bd08f57fff076c10859659807c Mon Sep 17 00:00:00 2001 From: Christoph Stahl Date: Sun, 12 Nov 2023 10:11:41 +0100 Subject: [PATCH] Nicer descriptions in sources --- syng/sources/filebased.py | 2 +- syng/sources/s3.py | 2 +- syng/sources/youtube.py | 8 ++++---- syng/static/index.html | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/syng/sources/filebased.py b/syng/sources/filebased.py index 537b66f..64577e2 100644 --- a/syng/sources/filebased.py +++ b/syng/sources/filebased.py @@ -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", ) } diff --git a/syng/sources/s3.py b/syng/sources/s3.py index 684d962..5147753 100644 --- a/syng/sources/s3.py +++ b/syng/sources/s3.py @@ -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]): diff --git a/syng/sources/youtube.py b/syng/sources/youtube.py index 0272512..417e6cf 100644 --- a/syng/sources/youtube.py +++ b/syng/sources/youtube.py @@ -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, ), } diff --git a/syng/static/index.html b/syng/static/index.html index 22dc120..634e56b 100644 --- a/syng/static/index.html +++ b/syng/static/index.html @@ -5,8 +5,8 @@ Syng Rocks! - - + +