check self.info is present
This commit is contained in:
parent
a7746dfdea
commit
aa61918d69
|
@ -188,7 +188,7 @@ class SoundFile:
|
|||
elif use_meta:
|
||||
if self.info is None:
|
||||
self.read_file_info()
|
||||
if self.info.tags:
|
||||
if self.info and self.info.tags:
|
||||
tags = self.info.tags
|
||||
title, artist, album, year = tuple(
|
||||
t and ', '.join(t) for t in (
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% load i18n %}
|
||||
<h3>{{ title }}</h3>
|
||||
<h3>{% blocktranslate with filter_title=title %} By {{ filter_title }} {% endblocktranslate %}</h3>
|
||||
{% block content %}{% endblock %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user