X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/bbe744da17ba7f02b0f8522ed98633377279f567..e7e2c234192c3e71cd69376eac9208a996eea935:/src/archive/migrations/0010_populate_license.py?ds=inline diff --git a/src/archive/migrations/0010_populate_license.py b/src/archive/migrations/0010_populate_license.py index 610a085..caec303 100644 --- a/src/archive/migrations/0010_populate_license.py +++ b/src/archive/migrations/0010_populate_license.py @@ -11,7 +11,7 @@ def populate_license(apps, schema_editor): for a in Audiobook.objects.all(): if a.mp3_published_tags: tags = json.loads(a.mp3_published_tags) - uri = tags.get('license') + uri = tags.get('tags', {}).get('license') if not uri: continue if uri not in licenses: