Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up the data: Option to ignore accidental plays #16

Open
DesertCookie opened this issue May 23, 2020 · 6 comments
Open

Clean up the data: Option to ignore accidental plays #16

DesertCookie opened this issue May 23, 2020 · 6 comments
Labels
feature This PR or Issue requests or introduces a new feature

Comments

@DesertCookie
Copy link

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.

@oddstr13 oddstr13 added the feature This PR or Issue requests or introduces a new feature label Nov 21, 2020
@ShakeSp33r
Copy link

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"

@DesertCookie
Copy link
Author

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).

@ShakeSp33r
Copy link

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.

@oddstr13
Copy link
Member

@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.

@skiwlkr
Copy link

skiwlkr commented Apr 19, 2022

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.

@GeoffreyCoulaud
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This PR or Issue requests or introduces a new feature
Projects
None yet
Development

No branches or pull requests

5 participants