CyferShepard / Jellystat

Jellystat is a free and open source Statistics App for Jellyfin
MIT License
1.1k stars 33 forks source link

Add the ability to query last watched ($date-time) for movies, seasons, and episodes via the JellyStat API. #235

Open NeurekaSoftware opened 3 months ago

NeurekaSoftware commented 3 months ago

Is your feature request related to a problem? Please describe.

I'm working on a Discord bot that will automatically purge media that is watched x days ago, but I can't seem to find a way to query when something was last watched.

Describe the solution you'd like

The ability to check when a movie, season, or episode was last watched via the JellyStat API.

Describe alternatives you've considered

Checking file last access time, but I'm not sure that will work via a network mount using rclone.

Additional context

n/a

CyferShepard commented 3 months ago

Hey @neurekadev , i added the Last Activity Date field to one of the endpoints, this one is meant to query single items. Can you describe how you plan to use this field, IE query all items or querying specific items? That way i can accommodate for this, the current change i made just works per item/season/episode.