jellyfin / jellyfin-plugin-playbackreporting

Playback Statistics Plugin for Jellyfin
https://jellyfin.org
GNU General Public License v3.0
70 stars 24 forks source link

Add ability to specify playback context (parent item) #70

Open Chaphasilor opened 1 year ago

Chaphasilor commented 1 year ago

Hi there!

I've recently been working with the Playback Reporting plugin quite a bit while building Jellyfin Rewind, and noticed that there is no way to figure out where a certain item was played.
This probably only makes a lot of sense for Audio items, but the information I would like to have is:
Was it a simple global songs shuffle? An album playback? A playlist?

Allowing clients to provide this information (if available) would be super-useful, as it would enhance the playback context for later reference. If not available (e.g. when shuffling songs and there is no specific parent item), the value could default to null or something similar.

What do you think? Is there maybe some additional information or multiple fields that could be added to further enhance information about the playback context?