Fixes in new layout.
[wolnelektury.git] / src / catalogue / views.py
index 9da3ebb..fe4b2bf 100644 (file)
@@ -294,7 +294,7 @@ def book_detail(request, slug):
     
     return render(
         request,
-        'catalogue/2021/book_detail.html' if new_layout.value else 'catalogue/book_detail.html',
+        'catalogue/2022/book_detail.html' if new_layout.value else 'catalogue/book_detail.html',
         {
             'book': book,
             'book_children': book.children.all().order_by('parent_number', 'sort_key'),
@@ -312,7 +312,7 @@ def player(request, slug):
     if not book.has_media('mp3'):
         raise Http404
 
-    audiobooks, projects = book.get_audiobooks()
+    audiobooks, projects, total_duration = book.get_audiobooks()
 
     return render(
         request,