More compact JSON

The software doesn't need an extra space per key.
This commit is contained in:
tcely 2025-01-07 00:43:59 -05:00 committed by GitHub
parent 8c22b6c99e
commit 63fa97cc58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -304,7 +304,7 @@ def download_media_metadata(media_id):
return return
source = media.source source = media.source
metadata = media.index_metadata() metadata = media.index_metadata()
media.metadata = json.dumps(metadata, default=json_serial) media.metadata = json.dumps(metadata, separators=(',', ':'), default=json_serial)
upload_date = media.upload_date upload_date = media.upload_date
# Media must have a valid upload date # Media must have a valid upload date
if upload_date: if upload_date: