1
0
mirror of https://git.sr.ht/~cadence/NewLeaf synced 2024-11-21 23:27:29 +00:00

Quote json keys correctly

This commit is contained in:
Cadence Ember 2021-05-14 18:46:46 +12:00
parent f0c9708d99
commit 18f5ef4c62
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17

View File

@ -69,8 +69,8 @@ class NewLeaf(object):
[ucid, part] = suffix [ucid, part] = suffix
else: else:
return { return {
error: "Two components specified in URL, but neither component was recognised as a part keyword.", "error": "Two components specified in URL, but neither component was recognised as a part keyword.",
identifier: "PART_KEYWORD_NOT_RECOGNISED" "identifier": "PART_KEYWORD_NOT_RECOGNISED"
} }
if part == "playlists": if part == "playlists":