check self.info is present

This commit is contained in:
bkfox 2022-07-13 14:03:26 +02:00
parent a7746dfdea
commit aa61918d69
2 changed files with 2 additions and 2 deletions

View File

@ -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 (

View File

@ -1,4 +1,4 @@
{% load i18n %}
<h3>{{ title }}</h3>
<h3>{% blocktranslate with filter_title=title %} By {{ filter_title }} {% endblocktranslate %}</h3>
{% block content %}{% endblock %}