dannicroax 4 Posted May 19, 2024 Posted May 19, 2024 Is it possible to get PlayCount information per TV series via API? I've been trying to extract it with no luck but what I've tried is getting PlayCount per TV series and also PlayCount per TV series per individual user but ideally I'd want aggregated counts. I've looked into the API documentation but I always get PlayCount: 0.
Luke 42080 Posted May 20, 2024 Posted May 20, 2024 Hi, it’s not a bad idea, but currently no. Play count is assigned to media, so you’d have to get all of the episodes and add the play counts up.
dannicroax 4 Posted May 20, 2024 Author Posted May 20, 2024 Thanks Luke. Is the information stored per episode or is it per user per episode? As in can I aggregate total play counts for all users in one go or do I have to map total play counts per user first and then aggregate the data per TV Show? I'm having a bit of a hard time understanding how the data is kept and accessed via API.
ebr 16185 Posted May 20, 2024 Posted May 20, 2024 Hi. You might want to look at the playback reporting plugin.
dannicroax 4 Posted May 20, 2024 Author Posted May 20, 2024 (edited) 41 minutes ago, ebr said: Hi. You might want to look at the playback reporting plugin. Thanks - I did look into that but I'm actually trying to code a small solution for myself regarding how I want to maintain my libraries and cleanup. The idea is to gather information if the TV show has been played by anyone and list all shows with zero plays. Then those shows get piped into Trakt to gather show rating and recommend shows that have low ratings and other factors to be deleted. Ultimately the solution will be able to remove the shows through Emby. I think I've gotten far enough on my own after this thread recommending adding UserDataPlayCount and UserDataLastPlayedDate to my requested fields: Ideally I'd want to be able to get this information on a show basis and not having to go through every users play activity per episode. I have 27 users with over 27.000 episodes which means scanning 729.000 times just to get the total play count, but for the current purpose of my solution this is good enough to begin with Edited May 20, 2024 by dannicroax
Luke 42080 Posted May 20, 2024 Posted May 20, 2024 Yes I agree we should have a way to send it back for the entire series.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now