ActivityWatch / activitywatch

The best free and open-source automated time tracker. Cross-platform, extensible, privacy-focused.
https://activitywatch.net/
Mozilla Public License 2.0
11.34k stars 512 forks source link

Activity watch not detecting watch time from media players like MPV and VLC #988

Closed Pineapplenuts closed 8 months ago

Pineapplenuts commented 8 months ago

Manjaro Linux Update: 2023-11-11 15:50 Version: v0.12.3b12

Describe the bug

Activity watch detects this time as away from keyboard time instead of time used watching media

To Reproduce

Open any video file in MPV and VLC and just watch the content.

Expected behavior

The time spent watching the content is allocated under the program name, eg under MPV and allocated under the media > video category similar to how content watched in youtube is allocated

Additional context

VLC is supposed to be approx 1 hour 30 min because of the movie i was watching was over 2 hours in length at 10% speed increase minus 33 minutes watched in mpv at 21% speed increase. MPV is also not including for watch because it would be approx 28 mins of watch time.

github-actions[bot] commented 8 months ago

Hi there! As you're new to this repo, please make sure you've used an appropriate issue template and searched for duplicates (it helps us focus on actual development!). We'd also like to suggest that you read our contribution guidelines and our code of conduct. Thanks a bunch for opening your first issue! 🙏

BelKed commented 8 months ago

Duplicate of https://github.com/ActivityWatch/activitywatch/issues/261

ErikBjare commented 8 months ago

There is no magic solution here.

You can add your video player to the "always count as active" pattern in settings, but then you risk false negatives if you leave your player open while you're inactive.

Closing in favor of #261 where this has already been discussed extensively.