Fixed unkwown typo :D
This commit is contained in:
parent
5936dfc2bf
commit
94ee3c4360
|
@ -16,7 +16,7 @@ from funkwhale_api.tags import models as tags_models
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
NODEFAULT = object()
|
NODEFAULT = object()
|
||||||
# default title used when imported tracks miss the `Album` tag, see #122
|
# default title used when imported tracks miss the `Album` tag, see #122
|
||||||
UNKWOWN_ALBUM = "[Unknown Album]"
|
UNKNOWN_ALBUM = "[Unknown Album]"
|
||||||
|
|
||||||
|
|
||||||
class TagNotFound(KeyError):
|
class TagNotFound(KeyError):
|
||||||
|
@ -442,7 +442,7 @@ class AlbumField(serializers.Field):
|
||||||
except TagNotFound:
|
except TagNotFound:
|
||||||
title = ""
|
title = ""
|
||||||
|
|
||||||
title = title.strip() or UNKWOWN_ALBUM
|
title = title.strip() or UNKNOWN_ALBUM
|
||||||
final = {
|
final = {
|
||||||
"title": title,
|
"title": title,
|
||||||
"release_date": data.get("date", None),
|
"release_date": data.get("date", None),
|
||||||
|
|
|
@ -568,7 +568,7 @@ def test_serializer_album_default_title_when_missing_or_empty(data):
|
||||||
"title": "Track",
|
"title": "Track",
|
||||||
"artists": [{"name": "Artist", "mbid": None}],
|
"artists": [{"name": "Artist", "mbid": None}],
|
||||||
"album": {
|
"album": {
|
||||||
"title": metadata.UNKWOWN_ALBUM,
|
"title": metadata.UNKNOWN_ALBUM,
|
||||||
"mbid": None,
|
"mbid": None,
|
||||||
"release_date": None,
|
"release_date": None,
|
||||||
"artists": [],
|
"artists": [],
|
||||||
|
|
|
@ -176,7 +176,7 @@ and reupload it.
|
||||||
|
|
||||||
.. _unknown_error:
|
.. _unknown_error:
|
||||||
|
|
||||||
Unkwown error
|
Unknown error
|
||||||
:::::::::::::
|
:::::::::::::
|
||||||
|
|
||||||
This error can happen for multiple reasons and likely indicates an issue with the Funkwhale
|
This error can happen for multiple reasons and likely indicates an issue with the Funkwhale
|
||||||
|
|
Loading…
Reference in New Issue