if type == 'all':
objects = objects.filter(type__in=('mp3', 'ogg', 'daisy'))
else:
- objects = objects.filter(type=type)
- return objects[:20]
+ objects = objects.filter(type=type)[:20]
+ return objects
def item_title(self, item):
return item.name
{% block extrahead %}
<link rel="alternate" type="application/atom+xml" title="{% trans "Latest MP3 audiobooks" %}" href="{% url audiobook_feed 'mp3' %}" />
<link rel="alternate" type="application/atom+xml" title="{% trans "Latest Ogg Vorbis audiobooks" %}" href="{% url audiobook_feed 'ogg' %}" />
- <link rel="alternate" type="application/atom+xml" title="{% trans "Latest audiobooks - all formats" %}" href="{% url audiobook_feed 'all' %}" />
{% endblock %}
{% block book_list_header %}{% trans "Listing of all audiobooks" %}{% endblock %}
{% block extrahead %}
<link rel="alternate" type="application/atom+xml" title="{% trans "Latest DAISY audiobooks" %}" href="{% url audiobook_feed 'daisy' %}" />
- <link rel="alternate" type="application/atom+xml" title="{% trans "Latest audiobooks - all formats" %}" href="{% url audiobook_feed 'all' %}" />
{% endblock %}
{% block book_list_header %}{% trans "Listing of all DAISY files" %}{% endblock %}