Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list top artists/playlist, add mime types, fallback to default mime type #14

Merged
merged 4 commits into from
May 7, 2024

Conversation

mgoltzsche
Copy link
Contributor

@mgoltzsche mgoltzsche commented Mar 20, 2024

  • Aggregates the top artists per playlist and exposes them comma-separated within the comment field of each playlist. Also optimizes direct/single playlist access.
  • Map mime types for m4a, mp4 and opus file extensions.
  • When no mime type registered for file extension, fallback to serving the file using mime type application/octet-stream (and log a warning) instead of failing the request. (At least GStreamer/Mopidy seems to do its own format detection anyway since it still plays such streams.)

Aggregates the top artists per playlist and exposes them comma-separated within the `comment` field of each playlist.
Also optimizes direct/single playlist access.
@mgoltzsche mgoltzsche force-pushed the aggregate-playlist-artists branch from 7b346b5 to 42b4172 Compare March 20, 2024 23:40
@mgoltzsche mgoltzsche changed the title feat(playlists): aggregate top artists feat(playlists): aggregate top artists, add mime types for m4a, mp4, opus Mar 20, 2024
@mgoltzsche mgoltzsche changed the title feat(playlists): aggregate top artists, add mime types for m4a, mp4, opus feat(playlists): aggregate top artists, map mime types for m4a, mp4 and opus files Mar 20, 2024
@mgoltzsche mgoltzsche changed the title feat(playlists): aggregate top artists, map mime types for m4a, mp4 and opus files aggregate top artists per playlist, map mime types for m4a, mp4 and opus files Mar 20, 2024
@mgoltzsche mgoltzsche changed the title aggregate top artists per playlist, map mime types for m4a, mp4 and opus files show top artists per playlist, map mime types for m4a, mp4 and opus Mar 20, 2024
@mgoltzsche mgoltzsche changed the title show top artists per playlist, map mime types for m4a, mp4 and opus show top artists per playlist, map mime types for m4a, mp4 and opus file extensions Mar 20, 2024
@mgoltzsche mgoltzsche force-pushed the aggregate-playlist-artists branch 2 times, most recently from 198fc08 to f4f3196 Compare March 21, 2024 00:21
@mgoltzsche mgoltzsche changed the title show top artists per playlist, map mime types for m4a, mp4 and opus file extensions show top artists per playlist, add mime types, fallback to default mime type Mar 21, 2024
@mgoltzsche mgoltzsche changed the title show top artists per playlist, add mime types, fallback to default mime type show top artists/playlist, add mime types, fallback to default mime type Mar 21, 2024
@mgoltzsche mgoltzsche force-pushed the aggregate-playlist-artists branch from f4f3196 to 44edfb5 Compare March 21, 2024 00:35
@mgoltzsche mgoltzsche marked this pull request as draft March 21, 2024 00:49
@mgoltzsche mgoltzsche marked this pull request as ready for review March 21, 2024 00:49
* Map .m4a, .mp4 and .opus file extensions to mime types.
* Fallback to using mime type 'application/octet-stream' instead of failing the request when no mime type registered for file extension.
@mgoltzsche mgoltzsche force-pushed the aggregate-playlist-artists branch from 44edfb5 to 1584586 Compare March 21, 2024 01:03
@mgoltzsche mgoltzsche changed the title show top artists/playlist, add mime types, fallback to default mime type list top artists/playlist, add mime types, fallback to default mime type Mar 21, 2024
@mgoltzsche mgoltzsche force-pushed the aggregate-playlist-artists branch 3 times, most recently from 7fdeca2 to 59e8003 Compare March 22, 2024 02:28
Using the lower-case artist name without accents as key when grouping artists within a playlist.
@mgoltzsche
Copy link
Contributor Author

@BinaryBrain it would be great if you could review and merge this PR soon. Not having the mime type fix/enhancement prevents me from serving my music library using upstream Beetstream and I guess others have the same problem, e.g. see #11.

@BinaryBrain
Copy link
Owner

Yes, I've been quite busy recently and the current version is broken if you don't have the smartplaylist plugin.

@mgoltzsche mgoltzsche marked this pull request as draft April 11, 2024 01:50
@mgoltzsche
Copy link
Contributor Author

ah, right, it fails here when neither the smartplaylist plugin was enabled nor the playlist_dir option specified. I'll add a commit to this PR to fix it...

Don't fail but log a warning when the smartplaylist beets plugin is not enabled and the `playlist_dir` configuration option was not specified.
@mgoltzsche mgoltzsche force-pushed the aggregate-playlist-artists branch from d09d794 to 369b28a Compare April 11, 2024 02:13
@mgoltzsche
Copy link
Contributor Author

Done: Now I've pushed another commit to not fail but log a warning when the smartplaylist plugin is not enabled and the playlist_dir configuration option was not specified.

@mgoltzsche mgoltzsche marked this pull request as ready for review April 11, 2024 02:15
@BinaryBrain BinaryBrain merged commit 3d7641a into BinaryBrain:main May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants