def get_config_schema(self): schema = super().get_config_schema() schema["protocols"] = config.List() schema["metadata_blacklist"] = config.List(optional=True) schema["timeout"] = config.Integer(minimum=1000, maximum=1000 * 60 * 60) return schema
def get_config_schema(self): schema = super(Extension, self).get_config_schema() schema['protocols'] = config.List() schema['metadata_blacklist'] = config.List(optional=True) schema['timeout'] = config.Integer(minimum=1000, maximum=1000 * 60 * 60) return schema
def get_config_schema(self): schema = super(Extension, self).get_config_schema() schema['name'] = config.String() schema['auto_sources'] = config.List() schema['auto_sinks'] = config.List() schema['attach_audio_sink'] = config.Boolean() return schema
def get_config_schema(self): schema = super(Extension, self).get_config_schema() schema['media_dirs'] = config.List(optional=True) schema['excluded_file_extensions'] = config.List(optional=True) schema['show_dotfiles'] = config.Boolean(optional=True) schema['follow_symlinks'] = config.Boolean(optional=True) schema['metadata_timeout'] = config.Integer(optional=True) return schema
def get_config_schema(self): schema = super().get_config_schema() schema["media_dirs"] = config.List(optional=True) schema["excluded_file_extensions"] = config.List(optional=True) schema["show_dotfiles"] = config.Boolean(optional=True) schema["follow_symlinks"] = config.Boolean(optional=True) schema["metadata_timeout"] = config.Integer(optional=True) return schema
def get_config_schema(self): schema = super(Extension, self).get_config_schema() schema["discover_pages"] = config.Integer(optional=True) schema["collection_items"] = config.Integer(optional=True) schema["discover_genres"] = config.List(optional=True) schema["discover_tags"] = config.List(optional=True) schema["image_sizes"] = config.List(optional=True) schema["identity"] = config.String(optional=True) return schema
def get_config_schema(self): schema = super().get_config_schema() schema["username"] = config.String() schema["password"] = config.Secret() schema["client_id"] = config.String() schema["client_secret"] = config.Secret() schema["bitrate"] = config.Integer(choices=(96, 160, 320)) schema["volume_normalization"] = config.Boolean() schema["private_session"] = config.Boolean() schema["timeout"] = config.Integer(minimum=0) schema["cache_dir"] = config.Deprecated() # since 2.0 schema["settings_dir"] = config.Deprecated() # since 2.0 schema["allow_cache"] = config.Boolean() schema["allow_network"] = config.Boolean() schema["allow_playlists"] = config.Boolean() schema["search_album_count"] = config.Integer(minimum=0, maximum=200) schema["search_artist_count"] = config.Integer(minimum=0, maximum=200) schema["search_track_count"] = config.Integer(minimum=0, maximum=200) schema["toplist_countries"] = config.List(optional=True) return schema
def get_config_schema(self): schema = super().get_config_schema() schema["library"] = config.Deprecated() schema["media_dir"] = config.Path() schema["data_dir"] = config.Deprecated() schema["playlists_dir"] = config.Deprecated() schema["tag_cache_file"] = config.Deprecated() schema["scan_timeout"] = config.Integer(minimum=1000, maximum=1000 * 60 * 60) schema["scan_flush_threshold"] = config.Integer(minimum=0) schema["scan_follow_symlinks"] = config.Boolean() schema["excluded_file_extensions"] = config.List(optional=True) schema["directories"] = config.List() schema["timeout"] = config.Integer(optional=True, minimum=1) schema["use_artist_sortname"] = config.Boolean() schema["album_art_files"] = config.List(optional=True) return schema
def get_config_schema(self): schema = super(Extension, self).get_config_schema() schema['dev_dir'] = config.Path() schema['devices'] = config.List(optional=True) schema['refresh'] = config.Integer(minimum=1) schema['vol_step_size'] = config.Integer(minimum=1, maximum=25) return schema
def get_config_schema(self): schema = super(Extension, self).get_config_schema() schema['username'] = config.String() schema['password'] = config.Secret() schema['bitrate'] = config.Integer(choices=(96, 160, 320)) schema['volume_normalization'] = config.Boolean() schema['private_session'] = config.Boolean() schema['timeout'] = config.Integer(minimum=0) schema['cache_dir'] = config.Deprecated() # since 2.0 schema['settings_dir'] = config.Deprecated() # since 2.0 schema['allow_cache'] = config.Boolean() schema['allow_network'] = config.Boolean() schema['allow_playlists'] = config.Boolean() schema['search_album_count'] = config.Integer(minimum=0, maximum=200) schema['search_artist_count'] = config.Integer(minimum=0, maximum=200) schema['search_track_count'] = config.Integer(minimum=0, maximum=200) schema['toplist_countries'] = config.List(optional=True) return schema
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
def get_config_schema(self): schema = super(Extension, self).get_config_schema() schema['library'] = config.String() schema['base_uri'] = config.String(optional=True) schema['image_dir'] = config.String(optional=True) schema['album_art_files'] = config.List(optional=True) return schema
def deserialize(self, value): dict = collections.OrderedDict() for s in config.List(optional=self.__optional).deserialize(value): parts = s.partition(self.__delim) key = self.__keys.deserialize(parts[0]) val = self.__values.deserialize(parts[2]) dict[key] = val return dict
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) return schema
def serialize(self, value, display=False): if not value: return "" d = config.String().serialize(self.__delim) return config.List().serialize([ self.__keys.serialize(k) + d + self.__values.serialize(v) for k, v in value.items() ])
def get_config_schema(self): schema = super(Extension, self).get_config_schema() schema['media_dir'] = config.Path() schema['playlists_dir'] = config.Path() schema['tag_cache_file'] = config.Path() schema['scan_timeout'] = config.Integer( minimum=1000, maximum=1000*60*60) schema['excluded_file_extensions'] = config.List(optional=True) return schema
def get_config_schema(self): schema = super(Extension, self).get_config_schema() schema['directories'] = config.List() schema['timeout'] = config.Integer(optional=True, minimum=1) schema['use_album_mbid_uri'] = config.Boolean() schema['use_artist_mbid_uri'] = config.Boolean() schema['extract_images'] = config.Boolean() schema['image_dir'] = config.String(optional=True) schema['image_base_uri'] = config.String(optional=True) schema['album_art_files'] = config.List(optional=True) # no longer used schema['encodings'] = config.Deprecated() schema['foreign_keys'] = config.Deprecated() schema['hash'] = config.Deprecated() schema['default_image_extension'] = config.Deprecated() return schema
def get_config_schema(self): schema = super(Extension, self).get_config_schema() schema['port'] = config.String() schema['baud'] = config.Integer() schema['channels'] = config.List() schema['min_volume'] = config.Integer() schema['max_volume'] = config.Integer() schema['volume_step'] = config.Integer() schema['enable_noise'] = config.Boolean() return schema
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) schema['zeroconf'] = config.String(optional=True) schema['command_blacklist'] = config.List(optional=True) return schema
def get_config_schema(self): schema = super(Extension, self).get_config_schema() schema['username'] = config.String() schema['password'] = config.Secret() schema['bitrate'] = config.Integer(choices=(96, 160, 320)) schema['timeout'] = config.Integer(minimum=0) schema['cache_dir'] = config.Path(optional=True) schema['settings_dir'] = config.Path() schema['toplist_countries'] = config.List(optional=True) return schema
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
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
def get_config_schema(self): schema = super(Extension, self).get_config_schema() schema['library'] = config.String() schema['media_dir'] = config.Path() schema['data_dir'] = config.Path() schema['playlists_dir'] = config.Path() schema['tag_cache_file'] = config.Deprecated() schema['scan_timeout'] = config.Integer(minimum=1000, maximum=1000 * 60 * 60) schema['scan_flush_threshold'] = config.Integer(minimum=0) schema['excluded_file_extensions'] = config.List(optional=True) return schema
def get_config_schema(self): schema = super().get_config_schema() schema.update( base_url=config.String(), collections=config.List(), audio_formats=config.List(), image_formats=config.List(), browse_limit=config.Integer(minimum=1, optional=True), browse_views=ConfigMap(keys=config.String(choices=SORT_FIELDS)), search_limit=config.Integer(minimum=1, optional=True), search_order=config.String(choices=SORT_FIELDS, optional=True), cache_size=config.Integer(minimum=1, optional=True), cache_ttl=config.Integer(minimum=0, optional=True), retries=config.Integer(minimum=0), timeout=config.Integer(minimum=0, optional=True), # no longer used browse_order=config.Deprecated(), exclude_collections=config.Deprecated(), exclude_mediatypes=config.Deprecated(), username=config.Deprecated(), ) return schema
def get_config_schema(self): schema = super(Extension, self).get_config_schema() schema['directories'] = config.List() schema['timeout'] = config.Integer(optional=True, minimum=1) schema['use_album_mbid_uri'] = config.Boolean() schema['use_artist_mbid_uri'] = config.Boolean() schema['search_limit'] = config.Integer(optional=True) # no longer used schema['extract_images'] = config.Deprecated() schema['image_dir'] = config.Deprecated() schema['image_base_uri'] = config.Deprecated() schema['album_art_files'] = config.Deprecated() return schema
def get_config_schema(self): """Return the extension's config valitation schema.""" schema = super().get_config_schema() # # Save on events # schema['save_on_events'] = config.List(optional=True) schema['save_interval'] = config.Integer(minimum=0) # # Tracklist # # uris = [uri, ...]|"auto" schema['tracklist.uris'] = AutoValue(config.List) # index = int|"auto" schema['tracklist.index'] = AutoValue(config.Integer, minimum=0) # Tracklist options (True|False|"auto") schema['tracklist.consume'] = AutoValue(config.Boolean) schema['tracklist.random'] = AutoValue(config.Boolean) schema['tracklist.repeat'] = AutoValue(config.Boolean) schema['tracklist.single'] = AutoValue(config.Boolean) # # Playback # # state = "stopped"|"playing"|"paused"|"auto" schema['playback.state'] = AutoValue( config.String, choices=['stopped', 'playing', 'paused']) # time_position = [ms]|"auto" schema['playback.time_position'] = AutoValue(config.Integer, minimum=0) # # Mixer # # volume = [0..100]|"auto" schema['mixer.volume'] = AutoValue(config.Integer, minimum=0, maximum=100) # mute = True|False|"auto") schema['mixer.mute'] = AutoValue(config.Boolean) return schema
def get_config_schema(self): schema = super().get_config_schema() schema["auth_json"] = config.String(optional=True) schema["auto_playlist_refresh"] = config.Integer(minimum=0, optional=True) schema["youtube_player_refresh"] = config.Integer(minimum=1, optional=True) schema["playlist_item_limit"] = config.Integer(minimum=1, optional=True) schema["subscribed_artist_limit"] = config.Integer(minimum=0, optional=True) schema["enable_history"] = config.Boolean(optional=True) schema["enable_liked_songs"] = config.Boolean(optional=True) schema["enable_mood_genre"] = config.Boolean(optional=True) schema["enable_scrobbling"] = config.Boolean(optional=True) schema["stream_preference"] = config.List(optional=True) return schema
def get_config_schema(self): schema = super(RadioDeExtension, self).get_config_schema() schema['language'] = config.String() schema['favorites'] = config.List(optional=True) return schema
def get_config_schema(self): schema = super(Extension, self).get_config_schema() schema['tagging_mode'] = config.Integer(minimum=0, maximum=10) schema['tokens'] = config.List(optional=True) return schema
def get_config_schema(self): schema = super(Extension, self).get_config_schema() schema['protocols'] = config.List() return schema