Replies: 2 comments 3 replies
-
I believe this may be the best way to go. I was attempting to find ways to read the title from Crunchyroll with their updated nonsense and came to the same conclusion. If it requires extra hooks to read from the DOM etc, that's going to add a noticeable hit on performance. An extension would be the right way to go. Something that could communicate back to Taiga over a port would be pretty nice. |
Beta Was this translation helpful? Give feedback.
-
It could potentially be a standalone browser extension, if you aren't playing any local media. Of course, you'd need the desktop app for monitoring local media players, but for web players, a similar extension already exists for music scrobbling a ton of different sites to last.fm, meaning they've already got all the main work done for finding titles and metadata (such as play/pause state) on various web players. It's also written in such a way that it's very simple for someone to add a new "connector" for a different site. It would probably be possible to fork that, replace the last.fm login/api with AL, AP, etc. (rewrite the settings page), delete most the music-specific connectors, and add a couple connectors for anime sites. However, they are still using the old v2 manifest, so it may be better just to take that project as inspiration for how it could work, and the structure/layout with independent connectors, and start from scratch using the new v3 manifest. As for non-standalone, communicating back to the desktop app, there is a built-in |
Beta Was this translation helpful? Give feedback.
-
Taiga's streaming media detection feature relies on UI automation, where Taiga (via Anisthesia) acts as a screen reader in order to read the address bar and the tabs of a web browser. While this method works fine for the most part, we either cannot access the DOM or doing so dramatically decreases the performance. It also partially relies on the web browser's language setting to be in English. Some services such as Hulu and Netflix, and more recently Crunchyroll (#994) and Funimation (#1003), do not display the required information in their page title, which makes detecting the currently playing media technically impossible.
This brings us to another idea: Using a browser extension/addon that works together with Taiga. Basically, this extension should detect known streaming sites and extract the relevant information (anime title, season number, episode number, episode title, etc.), then send it to Taiga using native messaging or a similar method (#129, #1045).
From what I remember, this wasn't feasible back when I first developed Taiga's streaming media detection feature in 2011. I still don't like the idea of requiring users to install an additional piece of software in order to enable a certain feature. But, with the recent developments, this might be a good time to reevaluate.
Beta Was this translation helpful? Give feedback.
All reactions