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

This commit is contained in:
syeopite
2025-01-22 11:35:33 -08:00
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;