Clean up the data: Option to ignore accidental plays
DesertCookie opened this issue · comments
It'd be nice to have an option that would allow you to configure plays to be automatically ignored or removed from the database under certain circumstances. For example, I'd like to ignore moments where someone started a movie but stopped watching it half a minute in.
This would clean up the data you have. Currently, about half of my play counts come from moments where a user only started watching a video but quickly moved on, or where a user restarted the playback because the video wouldn't start immediately. As is, the play count statistic is useless to me and only the play time statistic gives me the insight I need.
I had the same issue, so I started running a cron job that deletes all records where the PlayDuration less than 3 minutes.
Just run the following from terminal in the data directory:
sqlite3 playback_reporting.db "DELETE FROM PlaybackActivity WHERE PlayDuration < 180"
sqlite3 playback_reporting.db "DELETE FROM PlaybackActivity WHERE PlayDuration < 180"
That's a great woksraround. Thanks!
Is there a way to distinguish between different media formats? I'd like to keep three-minute-plays for media that's shorter than five minutes for example (lots of short episodes or music).
As far as I could see the column ItemType indicates the media (ex Episode, Movie), it does not show the length of the actual media, so you might have a problem there. Maybe @oddstr13 could show some light on that aspect.
@ShakeSp33r sorry, I've got no specific knowledge of this particular plugin, I've mostly just done maintenance updates for new Jellyfin releases, where figuring out what changed is more important than having intimate knowledge of the plugin at hand.
I'm also bombarded by notifications from the Jellyfin project as a whole, so didn't see this one before now, apologies.
I have a lot problems with longer plays. Some clients seem to keep the connection open so PlayDuration for a 2h Movie goes up to 20000 sometimes... These are minutes, right?
This screws up all the statistics for me.
I have a lot problems with longer plays. Some clients seem to keep the connection open so PlayDuration for a 2h Movie goes up to 20000 sometimes... These are minutes, right? This screws up all the statistics for me.
This is still an issue for me too. Some users started a movie in the morning, left it paused and came back to it in the afternoon and now I have a 13h play time for this user and movie... The solution would be to exclude time where the media is paused, however I have no idea if this metric is available.