summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorsyeopite <syeopite@syeopite.dev>2025-01-22 11:35:33 -0800
committersyeopite <syeopite@syeopite.dev>2025-01-22 11:35:33 -0800
commit831017f4037b5c65ef4e12d5b98f27d2fa06b414 (patch)
tree59e24bca586f40df0cfad85f892fc4774507e2a1 /assets
parent52daafe047637183a22af35fd852de93323ce9b3 (diff)
parent9d91ac3b8836a7f7afaf4d186ca885b2261c1872 (diff)
downloadinvidious-831017f4037b5c65ef4e12d5b98f27d2fa06b414.tar.gz
invidious-831017f4037b5c65ef4e12d5b98f27d2fa06b414.tar.bz2
invidious-831017f4037b5c65ef4e12d5b98f27d2fa06b414.zip
Frontend: Carry over audio-only mode in playlist links (#4784)
Diffstat (limited to 'assets')
-rw-r--r--assets/js/watch.js4
1 files changed, 4 insertions, 0 deletions
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;