kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
14 wiersze
456 B
Python
14 wiersze
456 B
Python
![]() |
from dynamic_preferences.types import StringPreference, Section
|
||
|
from dynamic_preferences.registries import global_preferences_registry
|
||
|
|
||
|
youtube = Section('providers_youtube')
|
||
|
|
||
|
|
||
|
@global_preferences_registry.register
|
||
|
class APIKey(StringPreference):
|
||
|
section = youtube
|
||
|
name = 'api_key'
|
||
|
default = 'CHANGEME'
|
||
|
verbose_name = 'YouTube API key'
|
||
|
help_text = 'The API key used to query YouTube. Get one at https://console.developers.google.com/.'
|