Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Philipp Wolfer
funkwhale
Commits
8f261f96
Verified
Commit
8f261f96
authored
Jun 28, 2019
by
Eliot Berriot
Browse files
Merge branch 'master' into develop
parents
17996ca9
b1fdab64
Changes
26
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
8f261f96
...
...
@@ -10,6 +10,55 @@ This changelog is viewable on the web at https://docs.funkwhale.audio/changelog.
.. towncrier
0.19.1 (2018-06-28)
-------------------
Upgrade instructions are available at
https://docs.funkwhale.audio/index.html
Enhancements:
- The currently playing track is now highlighted with an orange play icon (#832)
- Support for importing files with no album tag (#122)
- Redirect from / to /library when user is logged in (#864)
- Added a SUBSONIC_DEFAULT_TRANSCODING_FORMAT env var to support clients that don't provide the format parameter (#867)
- Added button to search for objects on Discogs (#368)
- Added copy-to-clipboard button with Subsonic password input (#814)
- Added opus to the list of supported mimetypes and extensions (#868)
- Aligned search headers with search results in the sidebar (#708)
- Clicking on the currently selected playlist in the Playlist popup will now close the popup (#807)
- Favorites radio will not be visible if the user does not have any favorites (#419)
Bugfixes:
- Ensure empty but optional fields in file metadata don't error during import (#850)
- Fix broken upload for specific files when using S3 storage (#857)
- Fixed broken translation on home and track detail page (#833)
- Fixed broken user admin for users with non-digit or letters in their username (#869)
- Fixed invalid file extension for transcoded tracks (#848)
- Fixed issue with French translation for "Start radio" (#849)
- Fixed issue with player changing height when hovering over the volume slider (#838)
- Fixed secondary menus truncated on narrow screens (#855)
- Fixed wrong og:image url when using S3 storage (#851)
- Hide pod statistics on about page if those are disabled (#835)
- Use ASCII filename before upload to S3 to avoid playback issues (#847)
Contributors to this release (commiters and reviewers):
- Ciarán Ainsworth
- Creak
- ealgase
- Eliot Berriot
- Esteban
- Freyja Wildes
- hellekin
- Johannes H.
- Mehdi
- Reg
0.19.0 (2019-05-16)
-------------------
...
...
api/config/settings/common.py
View file @
8f261f96
...
...
@@ -706,3 +706,6 @@ RSA_KEY_SIZE = 2048
CREATE_IMAGE_THUMBNAILS
=
env
.
bool
(
"CREATE_IMAGE_THUMBNAILS"
,
default
=
True
)
# we rotate actor keys at most every two days by default
ACTOR_KEY_ROTATION_DELAY
=
env
.
int
(
"ACTOR_KEY_ROTATION_DELAY"
,
default
=
3600
*
48
)
SUBSONIC_DEFAULT_TRANSCODING_FORMAT
=
(
env
(
"SUBSONIC_DEFAULT_TRANSCODING_FORMAT"
,
default
=
"mp3"
)
or
None
)
api/funkwhale_api/__init__.py
View file @
8f261f96
# -*- coding: utf-8 -*-
__version__
=
"0.19.
0
"
__version__
=
"0.19.
1
"
__version_info__
=
tuple
(
[
int
(
num
)
if
num
.
isdigit
()
else
num
...
...
api/funkwhale_api/subsonic/views.py
View file @
8f261f96
...
...
@@ -247,10 +247,6 @@ class SubsonicViewSet(viewsets.GenericViewSet):
if
not
upload
:
return
response
.
Response
(
status
=
404
)
format
=
data
.
get
(
"format"
,
"raw"
)
if
format
==
"raw"
:
format
=
None
max_bitrate
=
data
.
get
(
"maxBitRate"
)
try
:
max_bitrate
=
min
(
max
(
int
(
max_bitrate
),
0
),
320
)
or
None
...
...
@@ -259,6 +255,16 @@ class SubsonicViewSet(viewsets.GenericViewSet):
if
max_bitrate
:
max_bitrate
=
max_bitrate
*
1000
format
=
data
.
get
(
"format"
,
"raw"
)
or
None
if
max_bitrate
and
not
format
:
# specific bitrate requested, but no format specified
# so we use a default one, cf #867. This helps with clients
# that don't send the format parameter, such as DSub.
format
=
settings
.
SUBSONIC_DEFAULT_TRANSCODING_FORMAT
elif
format
==
"raw"
:
format
=
None
return
music_views
.
handle_serve
(
upload
=
upload
,
user
=
request
.
user
,
...
...
api/tests/subsonic/test_views.py
View file @
8f261f96
...
...
@@ -261,23 +261,48 @@ def test_stream_format(format, expected, logged_in_api_client, factories, mocker
@
pytest
.
mark
.
parametrize
(
"max_bitrate,expected"
,
[(
0
,
None
),
(
192
,
192000
),
(
2000
,
320000
)]
"max_bitrate,format,default_transcoding_format,expected_bitrate,expected_format"
,
[
# no max bitrate, no format, so no transcoding should happen
(
0
,
""
,
"ogg"
,
None
,
None
),
# same using "raw" format
(
0
,
"raw"
,
"ogg"
,
None
,
None
),
# specified bitrate, but no format, so fallback to default transcoding format
(
192
,
""
,
"ogg"
,
192000
,
"ogg"
),
# specified bitrate, but over limit
(
2000
,
""
,
"ogg"
,
320000
,
"ogg"
),
# specified format, we use that one
(
192
,
"opus"
,
"ogg"
,
192000
,
"opus"
),
# No default transcoding format set and no format requested
(
192
,
""
,
None
,
192000
,
None
),
],
)
def
test_stream_bitrate
(
max_bitrate
,
expected
,
logged_in_api_client
,
factories
,
mocker
):
def
test_stream_transcode
(
max_bitrate
,
format
,
default_transcoding_format
,
expected_bitrate
,
expected_format
,
logged_in_api_client
,
factories
,
mocker
,
settings
,
):
settings
.
SUBSONIC_DEFAULT_TRANSCODING_FORMAT
=
default_transcoding_format
url
=
reverse
(
"api:subsonic-stream"
)
mocked_serve
=
mocker
.
patch
.
object
(
music_views
,
"handle_serve"
,
return_value
=
Response
()
)
upload
=
factories
[
"music.Upload"
](
playable
=
True
)
response
=
logged_in_api_client
.
get
(
url
,
{
"id"
:
upload
.
track
.
pk
,
"maxBitRate"
:
max_bitrate
}
url
,
{
"id"
:
upload
.
track
.
pk
,
"maxBitRate"
:
max_bitrate
,
"format"
:
format
}
)
mocked_serve
.
assert_called_once_with
(
upload
=
upload
,
user
=
logged_in_api_client
.
user
,
format
=
None
,
max_bitrate
=
expected
,
format
=
expected_format
,
max_bitrate
=
expected
_bitrate
,
proxy_media
=
True
,
)
assert
response
.
status_code
==
200
...
...
changes/changelog.d/122.enhancement
deleted
100644 → 0
View file @
17996ca9
Support for importing files with no album tag (#122)
changes/changelog.d/368.enhancement
deleted
100644 → 0
View file @
17996ca9
Added button to search for objects on Discogs (#368)
changes/changelog.d/419.enhancement
deleted
100644 → 0
View file @
17996ca9
Favorites radio will not be visible if the user does not have any favorites (#419)
\ No newline at end of file
changes/changelog.d/708.enhancement
deleted
100644 → 0
View file @
17996ca9
Aligned search headers with search results in the sidebar (#708)
\ No newline at end of file
changes/changelog.d/807.enhancement
deleted
100644 → 0
View file @
17996ca9
Clicking on the currently selected playlist in the Playlist popup will now close the popup (#807)
\ No newline at end of file
changes/changelog.d/814.enhancement
deleted
100644 → 0
View file @
17996ca9
Added copy-to-clipboard button with Subsonic password input (#814)
changes/changelog.d/832.enhancement
deleted
100644 → 0
View file @
17996ca9
The currently playing track is now highlighted with an orange play icon (#832)
\ No newline at end of file
changes/changelog.d/833.bugfix
deleted
100644 → 0
View file @
17996ca9
Fixed broken translation on home and track detail page (#833)
changes/changelog.d/835.bugfix
deleted
100644 → 0
View file @
17996ca9
Hide pod statistics on about page if those are disabled (#835)
changes/changelog.d/838.bugfix
deleted
100644 → 0
View file @
17996ca9
Fixed issue with player changing height when hovering over the volume slider (#838)
changes/changelog.d/847.bugfix
deleted
100644 → 0
View file @
17996ca9
Use ASCII filename before upload to S3 to avoid playback issues (#847)
changes/changelog.d/848.bugfix
deleted
100644 → 0
View file @
17996ca9
Fixed invalid file extension for transcoded tracks (#848)
changes/changelog.d/849.bugfix
deleted
100644 → 0
View file @
17996ca9
Fixed issue with French translation for "Start radio" (#849)
changes/changelog.d/850.bugfix
deleted
100644 → 0
View file @
17996ca9
Ensure empty but optional fields in file metadata don't error during import (#850)
changes/changelog.d/851.bugfix
deleted
100644 → 0
View file @
17996ca9
Fixed wrong og:image url when using S3 storage (#851)
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment