MPJ-K / userScripts

This repository stores userScripts I have worked on for the Tampermonkey browser extension.
GNU General Public License v3.0
0 stars 0 forks source link

YTPT: Automatic fixed resolution makes incorrect assumptions about available playback qualities. #44

Closed MPJ-K closed 3 months ago

MPJ-K commented 4 months ago

The setPlaybackQuality() function incorrectly assumes that, if the desired quality is not available, the desired quality must be higher than the best available quality.

For example, when trying to set 480p ("large") playback quality when it is not available will set the playback quality to the best available quality, which is commonly 1080p.

The function should attempt to select the first available quality that is higher than the desired quality before setting the highest available quality.