Carry over audio-only mode in playlist links

This commit is contained in:
Krystof Pistek 2024-07-09 18:24:10 +02:00
parent 90e94d4e6c
commit 5f590dda80
No known key found for this signature in database
GPG key ID: 05E14D9E8454A01D
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;