Audiobook = apps.get_model('archive.Audiobook')
licenses = {}
for a in Audiobook.objects.all():
- if a.mp3_tags:
- tags = json.loads(a.mp3_tags)
- uri = tags.get('license')
+ if a.mp3_published_tags:
+ tags = json.loads(a.mp3_published_tags)
+ uri = tags.get('tags', {}).get('license')
if not uri:
continue
if uri not in licenses: