Skip to content

A lightweight fix addressing MPRIS metadata bugs on YouTube and YouTube Music

License

Notifications You must be signed in to change notification settings

LurkAndLoiter/youtube-mpris-fix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

icon32 YouTube MPRIS Fix

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

The Problem

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.

Our Solution's Approach

Seeking updates MPRIS.

On first frame loaded or PlaybackState 'play' we forcibly seek to the current position.


Installation:

Firefox

Firefox Add-Ons: YouTube MPRIS

Chromium

  1. Clone or download this repository.

  2. Open browser and go to chrome://extensions (or yourbrowser://extensions).

  3. Toggle "Developer mode" on.

  4. Click "Load unpacked".

  5. Select the extension directory (the folder that contains manifest.json).

  6. The extension should appear in the extensions list; reload the extension if you make alterations.


About

A lightweight fix addressing MPRIS metadata bugs on YouTube and YouTube Music

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors