Frontend: Carry over audio-only mode in playlist links (#4784)

This commit is contained in:
syeopite 2025-01-22 11:35:33 -08:00
commit 831017f403
No known key found for this signature in database
GPG key ID: A73C186DA3955A1A
4 changed files with 16 additions and 6 deletions

View file

@ -67,6 +67,10 @@ function get_playlist(plid) {
'&format=html&hl=' + video_data.preferences.locale;
}
if (video_data.params.listen) {
plid_url += '&listen=1'
}
helpers.xhr('GET', plid_url, {retries: 5, entity_name: 'playlist'}, {
on200: function (response) {
playlist.innerHTML = response.playlistHtml;