def get_config_schema(self): schema = super(SoundCloudExtension, self).get_config_schema() schema['explore_songs'] = config.Integer(optional=True) schema['auth_token'] = config.Secret() schema['explore'] = config.Deprecated() schema['explore_pages'] = config.Deprecated() 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().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["explore_songs"] = config.Integer(optional=True) schema["auth_token"] = config.Secret() schema["explore"] = config.Deprecated() schema["explore_pages"] = config.Deprecated() return schema
def get_config_schema(self): schema = super().get_config_schema() schema["username"] = config.Deprecated() schema["password"] = config.Deprecated() schema["refresh_token"] = config.Secret(optional=True) schema["bitrate"] = config.Integer(choices=(128, 160, 320)) schema["deviceid"] = config.String(optional=True) schema["all_access"] = config.Boolean(optional=True) schema["refresh_library"] = config.Integer(minimum=-1, optional=True) schema["refresh_playlists"] = config.Integer(minimum=-1, optional=True) schema["radio_stations_in_browse"] = config.Boolean(optional=True) schema["radio_stations_as_playlists"] = config.Boolean(optional=True) schema["radio_stations_count"] = config.Integer(minimum=1, optional=True) schema["radio_tracks_count"] = config.Integer(minimum=1, optional=True) schema["top_tracks_count"] = config.Integer(minimum=1, optional=True) 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(optional=True) 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) 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): 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['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().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.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['browse_root'] = config.String(optional=True) schema['browse_order'] = config.String(choices=['asc', 'desc']) schema['lookup_order'] = config.String(choices=['asc', 'desc']) schema['cache_size'] = config.Integer(minimum=1) schema['cache_ttl'] = config.Integer(minimum=1) schema['timeout'] = config.Integer(optional=True, minimum=1) # no longer used schema['browse_limit'] = config.Deprecated() schema['search_limit'] = config.Deprecated() schema['search_details'] = config.Deprecated() schema['update_interval'] = config.Deprecated() schema['feeds'] = config.Deprecated() schema['feeds_root_name'] = config.Deprecated() schema['feeds_cache_size'] = config.Deprecated() schema['feeds_cache_ttl'] = config.Deprecated() schema['feeds_timeout'] = config.Deprecated() return schema
def get_config_schema(self): from pandora import BaseAPIClient schema = super(Extension, self).get_config_schema() schema['api_host'] = config.String() schema['partner_encryption_key'] = config.String() schema['partner_decryption_key'] = config.String() schema['partner_username'] = config.String() schema['partner_password'] = config.String() schema['partner_device'] = config.String() schema['username'] = config.String() schema['password'] = config.Secret() schema['preferred_audio_quality'] = config.String(choices=[ BaseAPIClient.LOW_AUDIO_QUALITY, BaseAPIClient.MED_AUDIO_QUALITY, BaseAPIClient.HIGH_AUDIO_QUALITY ]) schema['sort_order'] = config.String(choices=['date', 'A-Z', 'a-z']) schema['auto_setup'] = config.Boolean() schema['auto_set_repeat'] = config.Deprecated() schema['cache_time_to_live'] = config.Integer(minimum=0) schema['event_support_enabled'] = config.Boolean() schema['double_click_interval'] = config.String() schema['on_pause_resume_click'] = config.String(choices=[ 'thumbs_up', 'thumbs_down', 'sleep', 'add_artist_bookmark', 'add_song_bookmark', 'delete_station' ]) schema['on_pause_next_click'] = config.String(choices=[ 'thumbs_up', 'thumbs_down', 'sleep', 'add_artist_bookmark', 'add_song_bookmark', 'delete_station' ]) schema['on_pause_previous_click'] = config.String(choices=[ 'thumbs_up', 'thumbs_down', 'sleep', 'add_artist_bookmark', 'add_song_bookmark', 'delete_station' ]) schema['on_pause_resume_pause_click'] = config.String(choices=[ 'thumbs_up', 'thumbs_down', 'sleep', 'add_artist_bookmark', 'add_song_bookmark', 'delete_station' ]) return schema
def get_config_schema(self): schema = super(Extension, self).get_config_schema() schema.update( base_url=config.String(), country=config.String(choices=COUNTRIES), explicit=config.String(choices=EXPLICIT, optional=True), charts=config.String(choices=CHARTS), charts_limit=config.Integer(minimum=1, maximum=MAX_LIMIT, optional=True), search_limit=config.Integer(minimum=1, maximum=MAX_LIMIT, optional=True), timeout=config.Integer(minimum=1, optional=True), retries=config.Integer(minimum=0), # no longer used charts_format=config.Deprecated(), episode_format=config.Deprecated(), genre_format=config.Deprecated(), podcast_format=config.Deprecated(), root_genre_id=config.Deprecated(), root_name=config.Deprecated()) return schema
def get_config_schema(self): from pandora.client import BaseAPIClient schema = super().get_config_schema() schema["api_host"] = config.String() schema["partner_encryption_key"] = config.String() schema["partner_decryption_key"] = config.String() schema["partner_username"] = config.String() schema["partner_password"] = config.String() schema["partner_device"] = config.String() schema["username"] = config.String() schema["password"] = config.Secret() schema["preferred_audio_quality"] = config.String( choices=[ BaseAPIClient.LOW_AUDIO_QUALITY, BaseAPIClient.MED_AUDIO_QUALITY, BaseAPIClient.HIGH_AUDIO_QUALITY, ] ) schema["sort_order"] = config.String(choices=["date", "A-Z", "a-z"]) schema["auto_setup"] = config.Boolean() schema["auto_set_repeat"] = config.Deprecated() schema["cache_time_to_live"] = config.Integer(minimum=0) schema["event_support_enabled"] = config.Boolean() schema["double_click_interval"] = config.String() schema["on_pause_resume_click"] = config.String( choices=[ "thumbs_up", "thumbs_down", "sleep", "add_artist_bookmark", "add_song_bookmark", "delete_station", ] ) schema["on_pause_next_click"] = config.String( choices=[ "thumbs_up", "thumbs_down", "sleep", "add_artist_bookmark", "add_song_bookmark", "delete_station", ] ) schema["on_pause_previous_click"] = config.String( choices=[ "thumbs_up", "thumbs_down", "sleep", "add_artist_bookmark", "add_song_bookmark", "delete_station", ] ) schema["on_pause_resume_pause_click"] = config.String( choices=[ "thumbs_up", "thumbs_down", "sleep", "add_artist_bookmark", "add_song_bookmark", "delete_station", ] ) return schema