예제 #1
0
파일: __init__.py 프로젝트: zwl1671/mopidy
 def get_config_schema(self):
     schema = super().get_config_schema()
     schema["base_dir"] = config.Path(optional=True)
     schema["default_encoding"] = config.String()
     schema["default_extension"] = config.String(choices=[".m3u", ".m3u8"])
     schema["playlists_dir"] = config.Path(optional=True)
     return schema
예제 #2
0
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     schema['base_dir'] = config.Path(optional=True)
     schema['default_encoding'] = config.String()
     schema['default_extension'] = config.String(choices=['.m3u', '.m3u8'])
     schema['playlists_dir'] = config.Path(optional=True)
     return schema
예제 #3
0
파일: __init__.py 프로젝트: eisnerd/mopidy
 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
예제 #4
0
 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
예제 #5
0
파일: __init__.py 프로젝트: zimbatm/mopidy
 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
예제 #6
0
    def get_config_schema(self):
        schema = super(Extension, self).get_config_schema()
        schema["serial_port"] = config.String()
        schema["serial_baudrate"] = config.Integer()

        schema["podcasts_timeout"] = config.Integer()

        schema["noise_folder"] = config.Path()

        schema["config_file"] = config.Path()

        schema["user"] = config.String(optional=True)
        schema["passwd"] = config.String(optional=True)

        return schema
예제 #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)
     return schema
예제 #8
0
 def get_config_schema(self):
     schema = super().get_config_schema()
     schema["max_icon_size"] = config.Integer(minimum=0)
     schema["fallback_icon"] = config.Path()
     schema["track_summary"] = config.String()
     schema["track_message"] = config.String()
     return schema
예제 #9
0
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     schema['refresh_rate'] = config.Integer()
     schema['artist_font_file'] = config.Path()
     schema['artist_font_size'] = config.Integer()
     schema['album_font_file'] = config.Path()
     schema['album_font_size'] = config.Integer()
     schema['title_font_file'] = config.Path()
     schema['title_font_size'] = config.Integer()
     schema['clock_font_file'] = config.Path()
     schema['clock_font_size'] = config.Integer()
     schema['progress_bar_font_file'] = config.Path()
     schema['progress_bar_font_size'] = config.Integer()
     schema['inactivity_timeout'] = config.Integer()
     schema['lcd_config'] = config.String()
     return schema
예제 #10
0
 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
예제 #11
0
 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()
     return schema
예제 #12
0
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     schema['audiosource'] = config.String()
     schema['max_search_results'] = config.Integer(minimum=1, maximum=50)
     schema['model_dir'] = config.Path()
     schema['model_name'] = config.String()
     schema['use_pocketsphinx'] = config.Boolean()
     return schema
예제 #13
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
예제 #14
0
 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
예제 #15
0
 def get_config_schema(self):
     schema = super().get_config_schema()
     schema["auth_json"] = config.Path(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)
     schema["verify_track_url"] = config.Boolean(optional=True)
     return schema
예제 #16
0
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     schema['screen_width'] = config.Integer(minimum=1)
     schema['screen_height'] = config.Integer(minimum=1)
     schema['cursor'] = config.Boolean()
     schema['fullscreen'] = config.Boolean()
     schema['cache_dir'] = config.Path()
     schema['gpio'] = config.Boolean()
     schema['gpio_left'] = config.Integer()
     schema['gpio_right'] = config.Integer()
     schema['gpio_up'] = config.Integer()
     schema['gpio_down'] = config.Integer()
     schema['gpio_enter'] = config.Integer()
     schema['sdl_fbdev'] = config.String()
     schema['sdl_mousdrv'] = config.String()
     schema['sdl_mousedev'] = config.String()
     schema['sdl_audiodriver'] = config.String()
     schema['sdl_path_dsp'] = config.String()
     return schema
예제 #17
0
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     schema[u'beetslibrary'] = config.Path()
     schema[u'use_original_release_date'] = config.Boolean(optional=True)
     return schema
예제 #18
0
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     schema['desktop_file'] = config.Path()
     schema['system_bus'] = config.Boolean()
     return schema
예제 #19
0
 def get_config_schema(self):
     schema = super().get_config_schema()
     schema["snapclient_path"] = config.Path(optional=True)
     schema["snapclient_args"] = config.String(optional=True)
     return schema
예제 #20
0
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     schema['playlists_dir'] = config.Path()
     return schema
예제 #21
0
 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()
     return schema
예제 #22
0
    def get_config_schema(self):
        schema = super(Extension, self).get_config_schema()

        schema['jobsfile'] = config.Path()
        return schema
예제 #23
0
 def get_config_schema(self):
     schema = super().get_config_schema()
     schema["media_dir"] = config.Path()
     return schema
예제 #24
0
 def get_config_schema(self):
     schema = super(LuxExtension, self).get_config_schema()
     schema['db_file'] = config.Path()
     schema['lastfm_key'] = config.Secret()
     return schema