Wykres commitów

1148 Commity (5009a5d0ccbc3afca09dd1204753f8d61ab172f1)

Autor SHA1 Wiadomość Data
Eliot Berriot bbfc48e630 Merge branch '275-size-error-upload' into 'develop'
Resolve "Uploading a big file via the web up fail without sending anything (Size error)"

Closes #275 and #276

See merge request funkwhale/funkwhale!229
2018-06-05 17:38:08 +00:00
Eliot Berriot d0c7ff77f6
Fix #276: Removed hardcoded size limit in file upload widget 2018-06-05 19:32:50 +02:00
Eliot Berriot 08b6cf371a Merge branch '281-play-25' into 'develop'
Resolve "Play all limited to 25 tracks"

Closes #281

See merge request funkwhale/funkwhale!227
2018-06-05 17:31:19 +00:00
Eliot Berriot 17d5fa6924
Fixed #239: broken track download modal (overflow and wrong URL) 2018-06-05 19:25:38 +02:00
Eliot Berriot 7df783a700
Fix #281: broken "play all" button that played only 25 tracks 2018-06-05 19:11:44 +02:00
Eliot Berriot a16bd2a409 Merge branch '273-fix-mimetypes' into 'develop'
Resolve "Update file_track_files command to handle bad mimetypes"

Closes #273

See merge request funkwhale/funkwhale!226
2018-06-03 17:00:54 +00:00
Eliot Berriot 18ad6cfa78
Fix #273: fix_track_files will now update files with bad mimetype 2018-06-03 18:57:35 +02:00
Eliot Berriot 1098f1b9e8 Merge branch '271-remove-transcoding' into 'develop'
Resolve "Remove transcoding"

Closes #271

See merge request funkwhale/funkwhale!225
2018-06-03 16:37:00 +00:00
Eliot Berriot 36a0a4df4f
Removed transcoding support (#271) 2018-06-03 18:33:28 +02:00
Eliot Berriot 390dcfd06f Merge branch '266-application-empty' into 'develop'
Resolve "Ogg files end up with a application/x-empty mimetype on import"

Closes #266

See merge request funkwhale/funkwhale!224
2018-06-03 16:11:51 +00:00
Eliot Berriot 5afc3e4637
Fix #266: Ensure we do not store bad mimetypes 2018-06-03 18:07:59 +02:00
Eliot Berriot f33dfdad9d Merge branch '270-version-number' into 'develop'
Resolve "Show the version number in the interface (in the footer?)"

Closes #270

See merge request funkwhale/funkwhale!223
2018-06-03 16:05:25 +00:00
Eliot Berriot f51c33615c
Fix #270: display server version in the footer 2018-06-03 18:01:42 +02:00
Eliot Berriot a00a6162c0
Merge tag '0.14' into develop
0.14 (2018-06-02)
-----------------

Upgrade instructions are available at
  https://docs.funkwhale.audio/upgrading.html

Features:

- Admins can now configure default permissions that will be granted to all
  registered users (#236)
- Files management interface for users with "library" permission (#223)
- New action table component for quick and efficient batch actions (#228) This
  is implemented on the federated tracks pages, but will be included in other
  pages as well depending on the feedback.

Enhancements:

- Added a new "upload" permission that allows user to launch import and view
  their own imports (#230)
- Added Support for OggTheora in import.
- Autoremove media files on model instance deletion (#241)
- Can now import a whole remote library at once thanks to new Action Table
  component (#164)
- Can now use album covers from flac/mp3 metadata and separate file in track
  directory (#219)
- Implemented getCovertArt in Subsonic API to serve album covers (#258)
- Implemented scrobble endpoint of subsonic API, listenings are now tracked
  correctly from third party apps that use this endpoint (#260)
- Retructured music API to increase performance and remove useless endpoints
  (#224)

Bugfixes:

- Consistent constraints/checks for URL size (#207)
- Display proper total number of tracks on radio detail (#225)
- Do not crash on flac import if musicbrainz tags are missing (#214)
- Empty save button in radio builder (#226)
- Ensure anonymous users can use the app if the instance is configured
  accordingly (#229)
- Ensure inactive users cannot get auth tokens (#218) This was already the case
  bug we missed some checks
- File-upload import now supports Flac files (#213)
- File-upload importer should now work properly, assuming files are tagged
  (#106)
- Fixed a few broken translations strings (#227)
- Fixed broken ordering in front-end lists (#179)
- Fixed ignored page_size paremeter on artist and favorites list (#240)
- Read ID3Tag Tracknumber from TRCK (#220)
- We now fetch album covers regardless of the import methods (#231)

Documentation:

- Added missing subsonic configuration block in deployment vhost files (#249)
- Moved upgrade doc under install doc in TOC (#251)

Other:

- Removed acoustid support, as the integration was buggy and error-prone (#106)

Files management interface
^^^^^^^^^^^^^^^^^^^^^^^^^^

This is the first bit of an ongoing work that will span several releases, to
bring more powerful library management features to Funkwhale. This iteration
includes a basic file management interface where users with the "library"
permission can list and search available files, order them using
various criterias (size, bitrate, duration...) and delete them.

New "upload" permission
^^^^^^^^^^^^^^^^^^^^^^^

This new permission is helpful if you want to give upload/import rights
to some users, but don't want them to be able to manage the library as a whole:
although there are no controls yet for managing library in the fron-end,
subsequent release will introduce management interfaces for artists, files,
etc.

Because of that, users with the "library" permission will have much more power,
and will also be able to remove content from the platform. On the other hand,
users with the "upload" permission will only have the ability to add new
content.

Also, this release also includes a new feature called "default permissions":
those are permissions that are granted to every users on the platform.
On public/open instances, this will play well with the "upload" permission
since everyone will be able to contribute to the instance library without
an admin giving the permission to every single user.

Smarter album cover importer
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

In earlier versions, covers where only imported when launching a YouTube import.
Starting from this release, covers will be imported regardless of the import mode
(file upload, youtube-dl, CLI, in-place...). Funkwhale will look for covers
in the following order:

1. In the imported file itself (FLAC/MP3 only)
2. In a cover.jpg or cover.png in the file directory
3. By fetching cover art from Musibrainz, assuming the file is tagged correctly

This will only work for newly imported tracks and albums though. In the future,
we may offer an option to refetch album covers from the interface, but in the
meantime, you can use the following snippet:

.. code-block:: python

    # Store this in /tmp/update_albums.py
    from funkwhale_api.music.models import Album, TrackFile
    from funkwhale_api.music.tasks import update_album_cover

    albums_without_covers = Album.objects.filter(cover='')
    total = albums_without_covers.count()
    print('Found {} albums without cover'.format(total))
    for i, album in enumerate(albums_without_covers.iterator()):
        print('[{}/{}] Fetching cover for {}...'.format(i+1, total, album.title))
        f = TrackFile.objects.filter(track__album=album).filter(source__startswith='file://').first()
        update_album_cover(album, track_file=f)

Then launch it::

    # docker setups
    cat /tmp/update_albums.py | docker-compose run --rm api python manage.py shell -i python

    # non-docker setups
    source /srv/funkwhale/load_env
    source /srv/funkwhale/virtualenv/bin/activate
    cat /tmp/update_albums.py | python manage.py shell -i python

    # cleanup
    rm /tmp/update_albums.py

.. note::

    Depending on your number of albums, the previous snippet may take some time
    to execute. You can interrupt it at any time using ctrl-c and relaunch it later,
    as it's idempotent.

Music API changes
^^^^^^^^^^^^^^^^^

This release includes an API break. Even though the API is advertised
as unstable, and not documented, here is a brief explanation of the change in
case you are using the API in a client or in a script. Summary of the changes:

- ``/api/v1/artists`` does not includes a list of tracks anymore. It was to heavy
  to return all of this data all the time. You can get all tracks for an
  artist using ``/api/v1/tracks?artist=artist_id``
- Additionally, ``/api/v1/tracks`` now support an ``album`` filter to filter
  tracks matching an album
- ``/api/v1/artists/search``, ``/api/v1/albums/search`` and ``/api/v1/tracks/search``
  endpoints are removed. Use ``/api/v1/{artists|albums|tracks}/?q=yourquery``
  instead. It's also more powerful, since you can combine search with other
  filters and ordering options.
- ``/api/v1/requests/import-requests/search`` endpoint is removed as well.
  Use ``/api/v1/requests/import-requests/?q=yourquery``
  instead. It's also more powerful, since you can combine search with other
  filters and ordering options.

Of course, the front-end was updated to work with the new API, so this should
not impact end-users in any way, apart from slight performance gains.

.. note::

    The API is still not stable and may evolve again in the future. API freeze
    will come at a later point.

Flac files imports via upload
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

You have nothing to do to benefit from this, however, since Flac files
tend to be a lot bigger than other files, you may want to increase the
``client_max_body_size`` value in your Nginx configuration if you plan
to upload flac files.

Missing subsonic configuration bloc in vhost files
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Because of a missing bloc in the sample Nginx and Apache configurations,
instances that were deployed after the 0.13 release are likely to be unable
to answer to Subsonic clients (the missing bits were properly documented
in the changelog).

Ensure you have the following snippets in your Nginx or Apache configuration
if you plan to use the Subsonic API.

Nginx::

    location /rest/ {
        include /etc/nginx/funkwhale_proxy.conf;
        proxy_pass   http://funkwhale-api/api/subsonic/rest/;
    }

Apache2::

    <Location "/rest">
        ProxyPass ${funkwhale-api}/api/subsonic/rest
        ProxyPassReverse ${funkwhale-api}/api/subsonic/rest
     </Location>
2018-06-02 18:11:39 +02:00
Eliot Berriot 7d6e6c6a8e
Merge branch 'release/0.14' 2018-06-02 18:11:22 +02:00
Eliot Berriot 73bde2fc9e
Version bump and changelog for 0.14 2018-06-02 18:11:15 +02:00
Eliot Berriot 87edc6ee38 Merge branch '231-cover-import' into 'develop'
Resolve "No cover on import"

Closes #231 and #219

See merge request funkwhale/funkwhale!222
2018-06-02 15:41:19 +00:00
Eliot Berriot 290cae9a8f
Fix #231 and #219: ensure we import covers regarless of the import method
Can now import covers from track metadata and track directory as well
2018-06-02 17:34:46 +02:00
Eliot Berriot 14c8073e26
Ensure we can serve images securely locally 2018-06-02 09:17:32 +02:00
Eliot Berriot 5ebaa884c1
Send proper activity when listening is created through subsonic API 2018-06-02 00:11:31 +02:00
Eliot Berriot 98c7cb6f05 Merge branch '260-subsonic-scrobble' into 'develop'
Resolve "Implement the scrobble API of subsonic"

Closes #260

See merge request funkwhale/funkwhale!221
2018-06-01 22:03:24 +00:00
Eliot Berriot 0f792bf75c
Fix #260: Implemented scrobble endpoint of subsonic API 2018-06-01 23:59:08 +02:00
Eliot Berriot 9ee0f09ff4 Merge branch '258-subsonic-covers' into 'develop'
Resolve "Include album covers in subsonic API"

Closes #258

See merge request funkwhale/funkwhale!220
2018-06-01 20:55:46 +00:00
Eliot Berriot 8d50743b3b
Fix #258: Implemented getCovertArt in Subsonic API to serve album covers 2018-06-01 08:42:05 +02:00
Eliot Berriot 218a92547e Merge branch '223-management-interface' into 'develop'
Resolve "Add a management interface for artists/albums/tracks"

Closes #223 and #241

See merge request funkwhale/funkwhale!216
2018-05-29 21:28:32 +00:00
Eliot Berriot 6b821bdfe3 Merge branch '225-radios-count' into 'develop'
Resolve "Radio shows containing only 25 tracks, when actually containing more tracks"

Closes #225

See merge request funkwhale/funkwhale!219
2018-05-29 21:28:03 +00:00
Eliot Berriot 877feff329 Merge branch '240-pagination' into 'develop'
Resolve "50 results per page returns 25"

Closes #240

See merge request funkwhale/funkwhale!218
2018-05-29 21:25:16 +00:00
Eliot Berriot 7a8c336e0d
Fix #225: Display proper total number of tracks on radio detail 2018-05-29 23:24:05 +02:00
Eliot Berriot 540c6fb583
Fixed #240: ignored page_size paremeter on artist and favorites list 2018-05-29 23:21:03 +02:00
Eliot Berriot fe91285155 Merge branch '251-doc-upgrade' into 'develop'
Resolve "Move upgrade TOC under installation"

Closes #251

See merge request funkwhale/funkwhale!217
2018-05-29 21:12:30 +00:00
Eliot Berriot 47126232d4
Fix #251: Moved upgrade doc under install doc in TOC 2018-05-29 23:08:42 +02:00
Eliot Berriot dcd150a1f1
See #223: fixed failing test 2018-05-29 22:54:53 +02:00
Eliot Berriot c59f289ea4
Fix #223: changelog 2018-05-29 22:39:28 +02:00
Eliot Berriot 1737a75d4e
See #223: reflect new possibilities of library permission in help text 2018-05-29 22:36:47 +02:00
Eliot Berriot 256d98b77d
See #223: delete actions is now dangerous anc cannot be applied to all files 2018-05-29 22:22:51 +02:00
Eliot Berriot 7b84a988fd
See #223: dangerous actions can now prevent executing an action on all objects 2018-05-29 21:55:00 +02:00
Eliot Berriot 92dbf52b3c Merge branch '249-subsonic-nginx' into 'develop'
Resolve "Add missing configuration block in nginx conf for subsonic"

Closes #249

See merge request funkwhale/funkwhale!215
2018-05-29 16:18:30 +00:00
Eliot Berriot 62cd1df248
Fix #249: Added missing subsonic configuration block in deployment vhost files 2018-05-29 18:12:46 +02:00
Eliot Berriot 7df9112d55
See #223: front-end to browse/manage library files 2018-05-29 00:07:38 +02:00
Eliot Berriot c7782693bc
See #223: api for listing/managing library files 2018-05-29 00:07:20 +02:00
Eliot Berriot 2569f136b7
Fix #241: autoremove media files on model instance deletion 2018-05-28 22:17:36 +02:00
Eliot Berriot d2c99b9f5d Merge branch '220-fix-mp3-track-numbers' into 'develop'
Resolve "Track numbers from mp3 don't get imported"

Closes #220

See merge request funkwhale/funkwhale!214
2018-05-26 11:40:25 +00:00
Eliot Berriot 9745b57f13 Merge branch '236-default-permission' into 'develop'
Resolve "Implement default permissions for logged in users"

Closes #236

See merge request funkwhale/funkwhale!213
2018-05-26 11:38:20 +00:00
David Magnus Henriques 8790631a65 Removed Typo which broke oggVorbis-import 2018-05-26 13:23:08 +02:00
David Magnus Henriques 737063946a Added Changelog 2018-05-26 13:18:18 +02:00
David Magnus Henriques e478bb923e Improved Unit test
The tracknumber and the compilation number are now not identical
anymore
2018-05-26 13:16:20 +02:00
David Magnus Henriques 06a5ee939a Changed ID3Tag for Track-Number to TRCK
Until now the ID3Tag for the Track-Number was read from TPOS.
The Problem is, that TPOS is the part of the set (eg disc number)
and not the track-number. TRCK is the correct tag for the track
number.

Fixes #220
2018-05-26 13:06:40 +02:00
Eliot Berriot e9fc220e19
Fix #236: changelog 2018-05-26 12:47:09 +02:00
Eliot Berriot 67aef15aca
See #236: front-end to manage users default permissions 2018-05-26 12:46:28 +02:00
Eliot Berriot 7ad19a3fbb
Ensure 403 errors are probably handled on the front-end 2018-05-26 12:46:13 +02:00