- audiobook = get_object_or_404(models.Audiobook, id=id)
- audiobook.publish_wait = datetime.now()
- audiobook.publishing_tags = audiobook.new_publish_tags()
+ audiobook = get_object_or_404(models.Audiobook, id=aid)
+ tags = {
+ 'name': audiobook.title,
+ 'url': audiobook.url,
+ 'tags': audiobook.new_publish_tags(),
+ }
+ audiobook.mp3_tags = tags
+ audiobook.ogg_tags = tags
+ audiobook.mp3_status = audiobook.ogg_status = status.WAITING