Skip to content
New issue

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

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

Already on GitHub? # to your account

Categorization ignoring certain URLs(from aw-webwatcher) but not others #559

Closed
rcarmelitano opened this issue Feb 2, 2021 · 4 comments
Closed

Comments

@rcarmelitano
Copy link

The categorization system does not file discord.com usage under the IM category despite there being a Rule(regex) for "Discord" yet it does file, just for example, youtube.com usage under the video category and that is defined the same way(regex rule for "YouTube").
I cannot see any difference here between the scenarios so I'm not sure why one works and the other doesn't. It results in all discord.com usage being filed under uncategorized. The data for which website is being used and for how long is coming from the aw-webwatcher chrome add on by the way.

aw-server_2021-02-02T00-18-45.log
I've just installed activitywatch last night so it is the most recent version as of 2/2/21.
The bug can be reproduced by having aw-webwatcher installed and using discord.com for a given length of time then looking at the web dashboard.
My apologies if this is user error or if my formatting is not acceptable, I've never reported a bug before.

@github-actions
Copy link

github-actions bot commented Feb 2, 2021

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! 🙏

@watertrainer
Copy link

watertrainer commented Feb 3, 2021

This is a known bug. Activitywatch currently only uses the window-title for categorization. he url is not used yet (although it is saved and might be used in the future). E.g. if you are on youtube and check the title of the tab, thats the text which is compared to your regex. TOn youtube this tab-title contains "Youtube", but on discord the tab title is the name of the current chat which is opened, so the regex "Discord" won't detect it (If you are in the "Friends" tab of discord, however, it has "Discord" as tab title and gets categorized correctly.
Here is the issue which discusses this further.

@johan-bjareholt
Copy link
Member

I'll close this issue.
If someone need to add anything to it, please do it on the issue that @watertrainer linked.

@AustEcon
Copy link

Are there plans to include the "url" field in the regex classification process? It's important to capture when chrome.exe is on github.com which should be classified as "productive time" whereas twitter.com should be classified as "unproductive time"...

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants