aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzrose584 <57181548+zrose584@users.noreply.github.com>2020-10-21 10:29:57 +0200
committerzrose584 <57181548+zrose584@users.noreply.github.com>2020-10-21 10:30:00 +0200
commit3b5df36b0310b751fc25f8c0b7167c659c8259de (patch)
tree2626e358801b9027ebe1585d45ed16bb87a5ca20
parent832524e421349e279d8ec06c89fef7f16dc46ae8 (diff)
downloadyt-local-3b5df36b0310b751fc25f8c0b7167c659c8259de.tar.lz
yt-local-3b5df36b0310b751fc25f8c0b7167c659c8259de.tar.xz
yt-local-3b5df36b0310b751fc25f8c0b7167c659c8259de.zip
fix sponserblock:js
-rw-r--r--youtube/static/js/sponsorblock.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube/static/js/sponsorblock.js b/youtube/static/js/sponsorblock.js
index 692de9b..dab4372 100644
--- a/youtube/static/js/sponsorblock.js
+++ b/youtube/static/js/sponsorblock.js
@@ -17,8 +17,8 @@ function load_sponsorblock(){
let url = `/https://sponsor.ajay.app/api/skipSegments/${hash}`;
fetch(url)
.then(response => response.json())
- .then(data => {
- for (const video of data) {
+ .then(r => {
+ for (const video of r) {
if (video.videoID != data.video_id) continue;
info_elem.innerText = `(${video.segments.length} segments)`;
const cat_n = video.segments.map(e=>e.category).sort()