navidrome/model
Brian Schrameck 30bb3f7b43
BPM metadata enhancement (#1087)
* BPM metadata enhancement

Related to #1036.

Adds BPM to the stored metadata about MediaFiles.

Displays BPM in the following locations:
- Listing songs in the song list (desktop, sortable)
- Listing songs in playlists (desktop, sortable)
- Listing songs in albums (desktop)
- Expanding song details

When listing, shows a blank field if no BPM is present. When showing song details, shows a question mark.

Updates test MP3 file to have BPM tag. Updated test to ensure tag is read correctly.

Updated localization files. Most languages just use "BPM" as discovered during research on Wikipedia. However, a couple use some different nomenclature. Spanish uses PPM and Japanese uses M.M.

* Enhances support for BPM metadata extraction

- Supports reading floating point BPM (still storing it as an integer) and FFmpeg as the extractor
- Replaces existing .ogg test file with one that shouldn't fail randomly
- Adds supporting tests for both FFmpeg and TagLib

* Addresses various issues with PR #1087.

- Adds index for BPM. Removes drop column as it's not supported by SQLite (duh).
- Removes localizations for BPM as those will be done in POEditor.
- Moves BPM before Comment in Song Details and removes BPM altogether if it's empty.
- Omits empty BPM in JSON responses, eliminating need for FunctionField.
- Fixes copy/paste error in ffmpeg_test.
2021-05-05 21:35:01 -04:00
..
request Move project to Navidrome GitHub organization 2021-02-06 21:46:35 -05:00
album.go Add denormalized list of artist_ids to album, to speed-up artist's albums queries 2020-12-13 14:05:48 -05:00
annotation.go Add ToggleStar to SongContextMenu (WIP) 2020-05-22 15:23:42 -04:00
artist.go Add artistImageUrl available in getArtists endpoint 2020-11-01 14:37:29 -05:00
artist_info.go Get Similar Artists in parallel 2020-10-21 21:44:03 -04:00
bookmark.go Better implementation of Bookmarks, using its own table 2020-08-01 12:17:15 -04:00
datastore.go Remove dangling tracks after changing MusicFolder. Fix #445 2020-10-02 16:18:45 -04:00
errors.go Get better artist images results 2020-10-20 16:07:31 -04:00
genres.go Add GetGenre endpoint 2020-01-15 17:56:02 -05:00
mediafile.go BPM metadata enhancement (#1087) 2021-05-05 21:35:01 -04:00
mediafolder.go Change MediaFolder.ID type to int32 2020-10-25 23:22:52 -04:00
player.go Add option for player to report real paths in Subsonic API. Closes #625 2020-11-28 10:25:23 -05:00
playlist.go Add and show Playlists sizes 2020-10-12 22:31:01 -04:00
playqueue.go Better implementation of Bookmarks, using its own table 2020-08-01 12:17:15 -04:00
properties.go Rename `domain` to `model` 2020-01-14 22:22:34 -05:00
transcoding.go fix: create default transcodings on existing installations 2020-03-17 16:49:37 -04:00
user.go Require user to provide current password to be able to change it 2021-05-03 15:03:34 -04:00