NikkelM / Random-YouTube-Video

A browser extension that allows you to truly randomly shuffle videos from any YouTube channel, offering many customization options.
https://chromewebstore.google.com/detail/random-youtube-video/kijgnjhogkjodpakfmhgleobifempckf
GNU Lesser General Public License v3.0
17 stars 3 forks source link

[Bug] Fix `This request exceeds the MAX_WRITE_OPERATIONS_PER_MINUTE quota.` errors #253

Open NikkelM opened 8 months ago

NikkelM commented 8 months ago

This error, and the equivalent This request exceeds the MAX_WRITE_OPERATIONS_PER_HOUR quota. appear when too many write operations are performed on the chrome.storage.sync object. This is important for the extension to be able to set settings values. It is mostly used when shuffling, as the numShuffledVideosTotal counter is increased.

A solution could be to not increase that counter if the user is getting too close to using up the quota for this duration.

NikkelM commented 8 months ago

For this to work, we would need to be able to get the currently used quota amount