Taiko2k / Tauon

The music player of today! :city_sunrise:
https://tauonmusicbox.rocks
GNU General Public License v3.0
1.64k stars 64 forks source link

add jellyfin genres #1171

Closed octoamit closed 1 week ago

octoamit commented 1 week ago

This pull request is for adding Genres to a Jellyfin playlist/collection.

Genres are not included by default in the GET response of the Items endpoint. According to the Jellyfin API documentation, the "fields" parameter allows you to "Specify additional fields of information to return in the output." One of those fields is Genres. https://api.jellyfin.org/#tag/Items/operation/GetItems

I changed the Jellfyin module to add a "fields" parameter to include the Genres field, and naturally added a variable to capture the Genre(s) in the Jellyfin import loop.

I've tested the changes and everything seems to work. Genres appear in the columns view of the Jellyfin Collection and I'm able to filter and create playlists based on the Genre.