youtube-music icon indicating copy to clipboard operation
youtube-music copied to clipboard

[Feature Request]: prevent request spamming Tuna when it's not launched

Open Destroy666x opened this issue 1 year ago • 0 comments

Preflight Checklist

  • [X] I use the latest version of YouTube Music (Application).
  • [X] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Problem Description

Tuna is spammed by requests even if it's not launched and thus also dev/debug log is spammed by error messages. Also ofc this is not too optimal since it happens on each elapsed time change.

Proposed Solution

The main idea would be to switch to "lazy" mode after X failed requests in a row (which could be configurable), what I mean by that is that the plugin would be basically stopped after that and only do much less frequent light requests (HEAD?) to check if Tuna is back online. Once a positive reply is recceived, it could switch back to regular mode.

Alternatives Considered

Another idea would be to activate the feature by Tuna sending a signal to YTM, e.g. a request, whenever it's ready to receive and awaiting data combined with X retries/timeout on YTMs side and then completely disabling the feature until receiving the signal. But this requires changes from Tuna and from what I know that project is inactive.

Additional Information

No response

Destroy666x avatar Jan 05 '24 22:01 Destroy666x