allow ogg to be used for previews

This commit is contained in:
Bui
2022-02-18 16:17:12 +00:00
parent 4d27499108
commit 78fe7062dc
4 changed files with 44 additions and 2 deletions

3
app.py
View File

@@ -121,7 +121,8 @@ def get_config(credentials=False):
'assets_baseurl': config.ASSETS_BASEURL,
'email': config.EMAIL,
'accounts': config.ACCOUNTS,
'custom_js': config.CUSTOM_JS
'custom_js': config.CUSTOM_JS,
'preview_type': config.PREVIEW_TYPE or 'mp3'
}
if credentials:
min_level = config.GOOGLE_CREDENTIALS['min_level'] or 0