From 6cd54724d2078f6f4fa8b4a783e27a25e6b29640 Mon Sep 17 00:00:00 2001 From: Hellow <74311245+HeIIow2@users.noreply.github.com> Date: Mon, 12 Jun 2023 22:54:04 +0200 Subject: [PATCH] completed new cli --- src/music_kraken/utils/config/connection.py | 6 +++--- src/music_kraken/utils/config/misc.py | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/music_kraken/utils/config/connection.py b/src/music_kraken/utils/config/connection.py index d6bae7a..1dfb4bf 100644 --- a/src/music_kraken/utils/config/connection.py +++ b/src/music_kraken/utils/config/connection.py @@ -1,7 +1,7 @@ from urllib.parse import urlparse import re -from .base_classes import Section, FloatAttribute, IntAttribute, BoolAttribute, ListAttribute +from .base_classes import Section, FloatAttribute, IntAttribute, BoolAttribute, ListAttribute, StringAttribute from ..regex import URL_PATTERN from ..exception.config import SettingValueError @@ -15,7 +15,7 @@ class ProxAttribute(ListAttribute): } -class UrlListAttribute(ListAttribute): +class UrlStringAttribute(StringAttribute): def validate(self, value: str): v = value.strip() url = re.match(URL_PATTERN, v) @@ -64,7 +64,7 @@ class ConnectionSection(Section): ) # INVIDIOUS INSTANCES LIST - self.INVIDIOUS_INSTANCE_LIST = UrlListAttribute( + self.INVIDIOUS_INSTANCE = UrlListAttribute( name="invidious_instances", description="This is a List, where you can define the invidious instances,\n" "the youtube downloader should use.\n" diff --git a/src/music_kraken/utils/config/misc.py b/src/music_kraken/utils/config/misc.py index 469c0af..021f154 100644 --- a/src/music_kraken/utils/config/misc.py +++ b/src/music_kraken/utils/config/misc.py @@ -12,11 +12,11 @@ class MiscSection(Section): "Support the artist.", "Star Me: https://github.com/HeIIow2/music-downloader", "🏳️‍⚧️🏳️‍⚧️ Trans rights are human rights. 🏳️‍⚧️🏳️‍⚧️", - "🏳️‍⚧️🏳️‍⚧️ Trans women are women, trans men are men. 🏳️‍⚧️🏳️‍⚧️", - "🏴‍☠️🏴‍☠️ Unite under one flag, fuck borders. 🏴‍☠️🏴‍☠️", + "🏳️‍⚧️🏳️‍⚧️ Trans women are women, trans men are men, and enbies are enbies. 🏳️‍⚧️🏳️‍⚧️", + "🏴‍☠️🏴‍☠️ Unite under one flag, fck borders. 🏴‍☠️🏴‍☠️", "Join my Matrix Space: https://matrix.to/#/#music-kraken:matrix.org", - "Gotta love the BPJM!! >:(", - "🏳️‍⚧️🏳️‍⚧️ Protect trans youth. 🏳️‍⚧️🏳️‍⚧️" + "Gotta love the BPJM ;-;", + "🏳️‍⚧️🏳️‍⚧️ Protect trans youth. 🏳️‍⚧️🏳️‍⚧️", ] )