From 94ee3c43604fe9c9b45d02c630a51a0c9726855b Mon Sep 17 00:00:00 2001
From: Eliot Berriot <contact@eliotberriot.com>
Date: Mon, 23 Sep 2019 11:30:37 +0200
Subject: [PATCH] Fixed unkwown typo :D

---
 api/funkwhale_api/music/metadata.py | 4 ++--
 api/tests/music/test_metadata.py    | 2 +-
 docs/users/upload.rst               | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/api/funkwhale_api/music/metadata.py b/api/funkwhale_api/music/metadata.py
index 4bdf04dde..feec90cc7 100644
--- a/api/funkwhale_api/music/metadata.py
+++ b/api/funkwhale_api/music/metadata.py
@@ -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),
diff --git a/api/tests/music/test_metadata.py b/api/tests/music/test_metadata.py
index 521850e9a..716d9c979 100644
--- a/api/tests/music/test_metadata.py
+++ b/api/tests/music/test_metadata.py
@@ -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": [],
diff --git a/docs/users/upload.rst b/docs/users/upload.rst
index 1cc3ef8f9..68238ac18 100644
--- a/docs/users/upload.rst
+++ b/docs/users/upload.rst
@@ -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
-- 
GitLab