mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 22:29:15 +02:00
Fixed #4: can now import artists and releases with a clean interface :party:
This commit is contained in:
parent
3ccb70d0a8
commit
aa80bd15fa
43 changed files with 1614 additions and 120 deletions
|
@ -53,6 +53,7 @@ THIRD_PARTY_APPS = (
|
|||
'rest_auth',
|
||||
'rest_auth.registration',
|
||||
'mptt',
|
||||
'dynamic_preferences',
|
||||
)
|
||||
|
||||
# Apps specific for this project go here.
|
||||
|
@ -65,6 +66,7 @@ LOCAL_APPS = (
|
|||
'funkwhale_api.history',
|
||||
'funkwhale_api.playlists',
|
||||
'funkwhale_api.providers.audiofile',
|
||||
'funkwhale_api.providers.youtube',
|
||||
)
|
||||
|
||||
# See: https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps
|
||||
|
@ -298,11 +300,6 @@ REST_FRAMEWORK = {
|
|||
)
|
||||
}
|
||||
|
||||
FUNKWHALE_PROVIDERS = {
|
||||
'youtube': {
|
||||
'api_key': env('YOUTUBE_API_KEY', default='REPLACE_ME')
|
||||
}
|
||||
}
|
||||
ATOMIC_REQUESTS = False
|
||||
|
||||
# Wether we should check user permission before serving audio files (meaning
|
||||
|
@ -314,3 +311,13 @@ PROTECT_AUDIO_FILES = env.bool('PROTECT_AUDIO_FILES', default=True)
|
|||
# Which path will be used to process the internal redirection
|
||||
# **DO NOT** put a slash at the end
|
||||
PROTECT_FILES_PATH = env('PROTECT_FILES_PATH', default='/_protected')
|
||||
|
||||
|
||||
# use this setting to tweak for how long you want to cache
|
||||
# musicbrainz results. (value is in seconds)
|
||||
MUSICBRAINZ_CACHE_DURATION = env.int(
|
||||
'MUSICBRAINZ_CACHE_DURATION',
|
||||
default=300
|
||||
)
|
||||
|
||||
CACHALOT_ENABLED = env.bool('CACHALOT_ENABLED', default=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue