A browser fix addressing MPRIS metadata bugs on YouTube and YouTube Music
Tested on:
- Google Chrome
- Chromium
- Brave
- Vivaldi
- Microsoft Edge
- Opera
- Firefox
- Librewolf
- Zen
YouTube is a Single-Page Application (SPA) that loads new videos dynamically without a full page refresh. Because of this, MPRIS often does not detect video changes and metadata updates. This also fixes firefox based browser position incrementing when paused.
Seeking updates MPRIS.
On first frame loaded or PlaybackState 'play' we forcibly seek to the current position.
Firefox Add-Ons: YouTube MPRIS
-
Clone or download this repository.
-
Open browser and go to
chrome://extensions(oryourbrowser://extensions). -
Toggle "Developer mode" on.
-
Click "Load unpacked".
-
Select the extension directory (the folder that contains
manifest.json). -
The extension should appear in the extensions list; reload the extension if you make alterations.