fix
This commit is contained in:
parent
abd5e35797
commit
4125b6ef62
|
|
@ -46,9 +46,7 @@ class PlayerTemplates:
|
||||||
local_content_cid = local_content.cid
|
local_content_cid = local_content.cid
|
||||||
local_content_cid.content_type = 'audio/mpeg'
|
local_content_cid.content_type = 'audio/mpeg'
|
||||||
local_content_url = f"{PROJECT_HOST}/api/v1/storage/{local_content_cid.serialize_v2(include_accept_type=True)}"
|
local_content_url = f"{PROJECT_HOST}/api/v1/storage/{local_content_cid.serialize_v2(include_accept_type=True)}"
|
||||||
|
if content_type == 'audio':
|
||||||
template_kwargs = {}
|
|
||||||
if content_type[0] == 'audio':
|
|
||||||
template_kwargs['title'] = 'title'
|
template_kwargs['title'] = 'title'
|
||||||
template_kwargs['performer'] = 'performer'
|
template_kwargs['performer'] = 'performer'
|
||||||
template_kwargs['protect_content'] = True
|
template_kwargs['protect_content'] = True
|
||||||
|
|
@ -56,7 +54,6 @@ class PlayerTemplates:
|
||||||
if cover_content:
|
if cover_content:
|
||||||
template_kwargs['thumbnail'] = cover_content.web_url
|
template_kwargs['thumbnail'] = cover_content.web_url
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
local_content = None
|
local_content = None
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue