Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Giger
funkwhale
Commits
94ee3c43
Verified
Commit
94ee3c43
authored
5 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Fixed unkwown typo :D
parent
5936dfc2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
api/funkwhale_api/music/metadata.py
+2
-2
2 additions, 2 deletions
api/funkwhale_api/music/metadata.py
api/tests/music/test_metadata.py
+1
-1
1 addition, 1 deletion
api/tests/music/test_metadata.py
docs/users/upload.rst
+1
-1
1 addition, 1 deletion
docs/users/upload.rst
with
4 additions
and
4 deletions
api/funkwhale_api/music/metadata.py
+
2
−
2
View file @
94ee3c43
...
...
@@ -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
UNK
W
OWN_ALBUM
=
"
[Unknown Album]
"
UNK
N
OWN_ALBUM
=
"
[Unknown Album]
"
class
TagNotFound
(
KeyError
):
...
...
@@ -442,7 +442,7 @@ class AlbumField(serializers.Field):
except
TagNotFound
:
title
=
""
title
=
title
.
strip
()
or
UNK
W
OWN_ALBUM
title
=
title
.
strip
()
or
UNK
N
OWN_ALBUM
final
=
{
"
title
"
:
title
,
"
release_date
"
:
data
.
get
(
"
date
"
,
None
),
...
...
This diff is collapsed.
Click to expand it.
api/tests/music/test_metadata.py
+
1
−
1
View file @
94ee3c43
...
...
@@ -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
.
UNK
W
OWN_ALBUM
,
"
title
"
:
metadata
.
UNK
N
OWN_ALBUM
,
"
mbid
"
:
None
,
"
release_date
"
:
None
,
"
artists
"
:
[],
...
...
This diff is collapsed.
Click to expand it.
docs/users/upload.rst
+
1
−
1
View file @
94ee3c43
...
...
@@ -176,7 +176,7 @@ and reupload it.
.. _unknown_error:
Unk
w
own error
Unk
n
own error
:::::::::::::
This error can happen for multiple reasons and likely indicates an issue with the Funkwhale
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment