Beispiel #1
0
 def get_config_schema(self):
     schema = super().get_config_schema()
     schema['mopidy_host'] = config.Hostname(optional=True)
     schema['mopidy_port'] = config.Port(optional=True)
     schema['mopidy_ssl'] = config.Boolean(optional=True)
     schema['snapcast_host'] = config.Hostname(optional=True)
     schema['snapcast_port'] = config.Port(optional=True)
     schema['snapcast_ssl'] = config.Boolean(optional=True)
     return schema
Beispiel #2
0
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     # TODO: Comment in and edit, or remove entirely
     schema['hostname'] = config.Hostname()
     schema['port'] = config.Port()
     schema['library'] = config.Integer()
     return schema
Beispiel #3
0
    def get_config_schema(self):
        schema = super(BAMPExtension, self).get_config_schema()
        schema['hostname'] = config.Hostname()
        schema['port'] = config.Port()
        schema['zeroconf'] = config.String(optional=True)
        schema['allowed_origins'] = config.List(optional=True)
        schema['csrf_protection'] = config.Boolean(optional=True)
        schema['xheaders_enabled'] = config.Boolean(optional=False)
        schema['cookie_secret'] = config.Secret()
        schema['ldap_uri'] = config.Secret()
        schema['ldap_schema'] = config.Secret()
        schema['downvotes_before_remove'] = config.Integer(minimum=1)
        schema['downvotes_difference_before_remove'] = config.Integer(
            optional=True)
        schema['allow_vote_on_own_tracks'] = config.Boolean(optional=False)
        schema['negative_scores_affect_ordering'] = config.Boolean(
            optional=False)
        schema['seconds_before_replay_allowed'] = config.Integer(minimum=0)
        schema['max_history_count'] = config.Integer(minimum=1)
        schema['max_alias_length'] = config.Integer(minimum=1)
        schema['slack_web_hook'] = config.String(optional=False)
        schema['build_hash'] = config.String(optional=False)
        schema['icecast_url'] = config.String(optional=True)
        schema['use_ldap_starttls'] = config.Boolean(optional=False)
        schema['ldap_certificate_path'] = config.String(optional=False)

        return schema
Beispiel #4
0
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     schema['hostname'] = config_lib.Hostname()
     schema['port'] = config_lib.Port()
     schema['static_dir'] = config_lib.Path(optional=True)
     schema['zeroconf'] = config_lib.String(optional=True)
     return schema
Beispiel #5
0
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     schema['hostname'] = config.Hostname()
     schema['port'] = config.Port()
     schema['password'] = config.Secret(optional=True)
     schema['max_connections'] = config.Integer(minimum=1)
     schema['connection_timeout'] = config.Integer(minimum=1)
     return schema
Beispiel #6
0
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     schema['hostname'] = config.Hostname()
     schema['port'] = config.Port()
     schema['ssl'] = config.String()
     schema['username'] = config.String()
     schema['password'] = config.Secret()
     return schema
Beispiel #7
0
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     schema['hostname'] = config_lib.Hostname()
     schema['port'] = config_lib.Port()
     schema['static_dir'] = config_lib.Path(optional=True)
     schema['zeroconf'] = config_lib.String(optional=True)
     schema['allowed_origins'] = config_lib.List(optional=True)
     schema['csrf_protection'] = config_lib.Boolean(optional=True)
     return schema
Beispiel #8
0
 def get_config_schema(self):
     schema = super(SubsonicExtension, self).get_config_schema()
     schema['hostname'] = config.Hostname()
     schema['port'] = config.Port()
     schema['username'] = config.String()
     schema['password'] = config.Secret()
     schema['ssl'] = config.Boolean()
     schema['context'] = config.String(optional=True)
     return schema
Beispiel #9
0
 def get_config_schema(self):
     schema = super().get_config_schema()
     schema["hostname"] = config_lib.Hostname()
     schema["port"] = config_lib.Port()
     schema["static_dir"] = config_lib.Deprecated()
     schema["zeroconf"] = config_lib.String(optional=True)
     schema["allowed_origins"] = config_lib.List(optional=True)
     schema["csrf_protection"] = config_lib.Boolean(optional=True)
     schema["default_app"] = config_lib.String(optional=True)
     return schema
Beispiel #10
0
    def get_config_schema(self):
        schema = super(Extension, self).get_config_schema()

        schema['host'] = config.Hostname()
        schema['port'] = config.Port(optional=True)
        schema['topic'] = config.String()

        schema['username'] = config.String(optional=True)
        schema['password'] = config.Secret(optional=True)

        return schema
Beispiel #11
0
 def get_config_schema(self):
     schema = super().get_config_schema()
     schema["hostname"] = config.Hostname()
     schema["port"] = config.Port(optional=True)
     schema["password"] = config.Secret(optional=True)
     schema["max_connections"] = config.Integer(minimum=1)
     schema["connection_timeout"] = config.Integer(minimum=1)
     schema["zeroconf"] = config.String(optional=True)
     schema["command_blacklist"] = config.List(optional=True)
     schema["default_playlist_scheme"] = config.String()
     return schema
Beispiel #12
0
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     schema['hostname'] = config.Hostname()
     schema['port'] = config.Port(optional=True)
     schema['password'] = config.Secret(optional=True)
     schema['max_connections'] = config.Integer(minimum=1)
     schema['connection_timeout'] = config.Integer(minimum=1)
     schema['zeroconf'] = config.String(optional=True)
     schema['command_blacklist'] = config.List(optional=True)
     schema['default_playlist_scheme'] = config.String()
     return schema
Beispiel #13
0
    def get_config_schema(self):
        schema = super(Extension, self).get_config_schema()
        schema['username'] = config.String()
        schema['user_id'] = config.String(optional=True)
        schema['password'] = config.Secret()
        schema['hostname'] = config.String()
        schema['port'] = config.Port()
        schema['client_cert'] = config.String(optional=True)
        schema['client_key'] = config.String(optional=True)

        return schema
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     schema['musicbox'] = config.Boolean(optional=True)
     schema['websocket_host'] = config.Hostname(optional=True)
     schema['websocket_port'] = config.Port(optional=True)
     schema['on_track_click'] = config.String(optional=True,
                                              choices=['PLAY_NOW',
                                                       'PLAY_NEXT',
                                                       'ADD_THIS_BOTTOM',
                                                       'ADD_ALL_BOTTOM',
                                                       'PLAY_ALL',
                                                       'DYNAMIC'])
     return schema
Beispiel #15
0
    def get_config_schema(self):
        schema = super(Extension, self).get_config_schema()
        schema['username'] = config.String()
        schema['user_id'] = config.String(optional=True)
        schema['password'] = config.Secret(optional=True)
        schema['hostname'] = config.String()
        schema['libraries'] = config.String(optional=True)
        schema['albumartistsort'] = config.String(optional=True)
        schema['port'] = config.Port(optional=True)
        schema['client_cert'] = config.String(optional=True)
        schema['client_key'] = config.String(optional=True)
        schema['album_format'] = config.String(optional=True)
        schema['max_bitrate'] = config.Integer(optional=True)
        schema['watched_status'] = config.Boolean(optional=True)

        return schema
Beispiel #16
0
 def get_config_schema(self):
     schema = super().get_config_schema()
     schema["musicbox"] = config.Boolean(optional=True)
     schema["websocket_host"] = config.Hostname(optional=True)
     schema["websocket_port"] = config.Port(optional=True)
     schema["on_track_click"] = config.String(
         optional=True,
         choices=[
             "PLAY_NOW",
             "PLAY_NEXT",
             "ADD_THIS_BOTTOM",
             "ADD_ALL_BOTTOM",
             "PLAY_ALL",
             "DYNAMIC",
         ],
     )
     return schema
def get_config_definition():
    config_definition = [
        ['topic',
         config.String(True), 'mopidy', 'Mosquitto Main topic'],
        [
            'client_id',
            config.String(True), 'mopidy-mqFrontend',
            'Client Id as shown in Mosquitto'
        ], ['host',
            config.Hostname(True), 'localhost', 'Mosquitto host'],
        ['port', config.Port(optional=True), 1883, 'Mosquitto port'],
        [
            'keep_alive',
            config.Integer(optional=True), 60,
            'Keep alive for Mosquitto protocol'
        ],
        [
            'reconnect_after',
            config.Integer(optional=True), 15,
            'If connect lost reconnect after X seconds'
        ], ['username',
            config.String(True), '', 'User name if needed'],
        ['password', config.Secret(True), '', 'Password if needed'],
        [
            'speaker_keep_alive_interval',
            config.Integer(optional=True), 30, 'Keep alive for interval '
            'for speakers - zero to '
            'disable'
        ],
        [
            'speaker_keep_alive_topic',
            config.String(True), 'mopidy/speakers_needed', 'Topic to send '
            'keep speakers '
            'alive'
        ],
        [
            'speaker_keep_alive_payload',
            config.String(True), "True", 'payload of speakers keep alive '
            'message'
        ]
    ]

    return config_definition
Beispiel #18
0
 def get_config_schema(self):
     print("Setting up defaults schema")
     schema = super(Extension, self).get_config_schema()
     schema['web_host'] = config.Hostname(optional=True)
     schema['web_port'] = config.Port(optional=True)
     return schema
Beispiel #19
0
 def get_config_schema(self):
     schema = super(MusicBoxExtension, self).get_config_schema()
     schema['musicbox'] = config.Boolean(optional=True)
     schema['websocket_host'] = config.Hostname(optional=True)
     schema['websocket_port'] = config.Port(optional=True)
     return schema
Beispiel #20
0
 def get_config_schema(self):
     schema = super(BeetsExtension, self).get_config_schema()
     schema["hostname"] = config.Hostname()
     schema["port"] = config.Port()
     return schema
Beispiel #21
0
 def get_config_schema(self):
     schema = super().get_config_schema()
     schema["hostname"] = config.Hostname()
     schema["port"] = config.Port()
     return schema