Merge branch 'unkwown-typo' into 'develop'

Fixed unkwown typo :D

See merge request funkwhale/funkwhale!903
environments/review-front-927-m6zslj/deployments/2768
Eliot Berriot 2019-09-23 11:36:33 +02:00
commit 884b4d8e81
3 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -16,7 +16,7 @@ from funkwhale_api.tags import models as tags_models
logger = logging.getLogger(__name__)
NODEFAULT = object()
# default title used when imported tracks miss the `Album` tag, see #122
UNKWOWN_ALBUM = "[Unknown Album]"
UNKNOWN_ALBUM = "[Unknown Album]"
class TagNotFound(KeyError):
@ -442,7 +442,7 @@ class AlbumField(serializers.Field):
except TagNotFound:
title = ""
title = title.strip() or UNKWOWN_ALBUM
title = title.strip() or UNKNOWN_ALBUM
final = {
"title": title,
"release_date": data.get("date", None),

Wyświetl plik

@ -568,7 +568,7 @@ def test_serializer_album_default_title_when_missing_or_empty(data):
"title": "Track",
"artists": [{"name": "Artist", "mbid": None}],
"album": {
"title": metadata.UNKWOWN_ALBUM,
"title": metadata.UNKNOWN_ALBUM,
"mbid": None,
"release_date": None,
"artists": [],

Wyświetl plik

@ -176,7 +176,7 @@ and reupload it.
.. _unknown_error:
Unkwown error
Unknown error
:::::::::::::
This error can happen for multiple reasons and likely indicates an issue with the Funkwhale