downloadble fix

This commit is contained in:
user committed 2025-03-17 13:43:31 +03:00
1 parent b02ded982c
commit 1a1f4301cf
1 file changed
+3
+3
View File
@@ -156,6 +156,9 @@ async def s_api_v1_content_view(request, content_address: str):
display_options['metadata'] = content_metadata_json
opts['downloadable'] = content_metadata_json.get('downloadable', False)
if opts['downloadable']:
if not ('listen' in opts['have_licenses']):
opts['downloadable'] = False
return response.json({
**opts,