This commit is contained in:
user committed 2024-04-05 14:54:52 +03:00
1 parent abd5e35797
commit 4125b6ef62
1 file changed
+1 -4
@@ -46,9 +46,7 @@ class PlayerTemplates:
local_content_cid = local_content.cid
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)}"
template_kwargs = {}
if content_type[0] == 'audio':
if content_type == 'audio':
template_kwargs['title'] = 'title'
template_kwargs['performer'] = 'performer'
template_kwargs['protect_content'] = True
@@ -56,7 +54,6 @@ class PlayerTemplates:
if cover_content:
template_kwargs['thumbnail'] = cover_content.web_url
else:
local_content = None