erengy / taiga

A lightweight anime tracker for Windows
https://taiga.moe
GNU General Public License v3.0
2.06k stars 219 forks source link

Google Chrome desktop shortcuts not detected #317

Open HmmmQuestionMark opened 7 years ago

HmmmQuestionMark commented 7 years ago

When using a Chrome Desktop Shortcut (More Tools>Add to Desktop) in a new window, Taiga is unable to recognize any media. I've tested Crunchyroll and Netflix. Opening these websites in an ordinary Chrome window works as advertised.

erengy commented 7 years ago

Here's the thing: Taiga needs to know the current page's URL in order to detect supported streaming media providers. However, Chrome windows launched from desktop shortcuts don't have a URL bar...

Note to self: Looks like there is a URL bar; it's just hidden. We can find it by creating UIA_ValueIsReadOnlyPropertyId and UIA_IsOffscreenPropertyId conditions. But this may also break detection of actual browser windows, so it may not be worth it.