downloadble fix

This commit is contained in:
user 2025-03-17 13:43:31 +03:00
parent b02ded982c
commit 1a1f4301cf
1 changed files with 3 additions and 0 deletions

View File

@ -156,6 +156,9 @@ async def s_api_v1_content_view(request, content_address: str):
display_options['metadata'] = content_metadata_json display_options['metadata'] = content_metadata_json
opts['downloadable'] = content_metadata_json.get('downloadable', False) opts['downloadable'] = content_metadata_json.get('downloadable', False)
if opts['downloadable']:
if not ('listen' in opts['have_licenses']):
opts['downloadable'] = False
return response.json({ return response.json({
**opts, **opts,