From 5f590dda80927fd867b184cbc41065818abada9a Mon Sep 17 00:00:00 2001 From: Krystof Pistek Date: Tue, 9 Jul 2024 18:24:10 +0200 Subject: Carry over audio-only mode in playlist links --- assets/js/watch.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'assets') diff --git a/assets/js/watch.js b/assets/js/watch.js index 26ad138f..d869d40d 100644 --- a/assets/js/watch.js +++ b/assets/js/watch.js @@ -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; -- cgit v1.2.3