------------------------------------------------------------
commit eb2b6e1125edb72a1461d90dc2d8feb8f3b481e8
Author: ffff:80.39.43.30 <ffff:80.39.43.30@togger.com>
Date: Fri Dec 13 15:44:30 2024 +0000
updated channels/bravadamike.scroll
diff --git a/channels/bravadamike.scroll b/channels/bravadamike.scroll
index 35adbec..aeb6ee6 100644
--- a/channels/bravadamike.scroll
+++ b/channels/bravadamike.scroll
@@ -2,7 +2,7 @@
id bravadamike
youtube https://www.youtube.com/@bravadamike
-status live
+status removed
channelid UCjaROYgnX2o8BNEpfrytgbQ
channeltitle Bravada Mike
jams cats
------------------------------------------------------------
commit aab80c3cf3bab24fe77bfbddd94128be9615bc24
Author: ffff:102.22.168.2 <ffff:102.22.168.2@togger.com>
Date: Fri Dec 13 10:09:32 2024 +0000
updated channels/homewebserver.scroll
diff --git a/channels/homewebserver.scroll b/channels/homewebserver.scroll
index 4cf39f8..f5be6bf 100644
--- a/channels/homewebserver.scroll
+++ b/channels/homewebserver.scroll
@@ -2,7 +2,7 @@
id homewebserver
youtube https://www.youtube.com/@HomeWebServer
-status live
+status removed
channelid UCiKa__tRwuOxKrW4e3aLFHA
channeltitle Home Web Server Live Streaming
jams code
------------------------------------------------------------
commit 637a1b6d08ba9ab9d444819a7b808849bbfed75c
Author: ffff:38.40.6.149 <ffff:38.40.6.149@togger.com>
Date: Fri Dec 13 09:00:42 2024 +0000
updated channels/UCuJMRZh0c4jaQsE7IYpAqUA.scroll
diff --git a/channels/UCuJMRZh0c4jaQsE7IYpAqUA.scroll b/channels/UCuJMRZh0c4jaQsE7IYpAqUA.scroll
index e17ed75..628e9db 100644
--- a/channels/UCuJMRZh0c4jaQsE7IYpAqUA.scroll
+++ b/channels/UCuJMRZh0c4jaQsE7IYpAqUA.scroll
@@ -2,7 +2,7 @@
id UCuJMRZh0c4jaQsE7IYpAqUA
youtube https://www.youtube.com/channel/UCuJMRZh0c4jaQsE7IYpAqUA
-status live
+status off
channelid UCuJMRZh0c4jaQsE7IYpAqUA
channeltitle YADUVANSI SUCCESS POINT
jams science
------------------------------------------------------------
commit 8ad268191ab821cd39e571067e82a2b037473cf5
Author: ffff:38.40.6.149 <ffff:38.40.6.149@togger.com>
Date: Fri Dec 13 09:00:13 2024 +0000
updated channels/UCjkLYVF8Up8zt9ZQNLpR_TQ.scroll
diff --git a/channels/UCjkLYVF8Up8zt9ZQNLpR_TQ.scroll b/channels/UCjkLYVF8Up8zt9ZQNLpR_TQ.scroll
index 5797e96..2e390b9 100644
--- a/channels/UCjkLYVF8Up8zt9ZQNLpR_TQ.scroll
+++ b/channels/UCjkLYVF8Up8zt9ZQNLpR_TQ.scroll
@@ -2,7 +2,7 @@
id UCjkLYVF8Up8zt9ZQNLpR_TQ
youtube https://www.youtube.com/channel/UCjkLYVF8Up8zt9ZQNLpR_TQ
-status live
+status removed
channelid UCjkLYVF8Up8zt9ZQNLpR_TQ
channeltitle Times Now Marathi
jams science
------------------------------------------------------------
commit b5e4e6609194b663e746612cdbaf88cc95bd7fcc
Author: Breck Yunits <breck7@gmail.com>
Date: Thu Dec 12 14:03:28 2024 -1000
Better custom jams
diff --git a/.gitignore b/.gitignore
index 2891994..74bb51c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,6 +6,7 @@
*.css
*.js
*.csv
+.*
requests.scroll
*.tsv
node_modules
\ No newline at end of file
diff --git a/togger.js b/togger.js
index 9fefdb3..e5b05ec 100644
--- a/togger.js
+++ b/togger.js
@@ -10,6 +10,9 @@ class Togger {
constructor() {
this.isRemoteVisible = true // Add this line near the top
+ this.initChannels()
+ this.maybeAddCustomChannels()
+
this.jamNames = Array.from(
new Set(
this.channels
@@ -18,6 +21,7 @@ class Togger {
.split(" "),
),
)
+
this.jamNames.sort()
const params = new URLSearchParams(window.location.search)
let startJam =
@@ -163,31 +167,42 @@ class Togger {
this.showIndicator(this.isRemoteVisible ? "Remote: ON" : "Remote: OFF")
}
- maybeAddCustomChannel() {
+ maybeAddCustomChannels() {
const params = new URLSearchParams(window.location.search)
const customVideoId = params.get("v")
+ const customJamTitle = params.get("jam") || "customjam"
+
if (!customVideoId) return ""
- this._channels.unshift({
- id: "custom",
- youtube: "https://www.youtube.com/watch?v=" + customVideoId,
- channelid: "",
- channeltitle: "",
- status: "off",
- jams: "customjam",
- neweststream: customVideoId,
+
+ // Split video IDs by comma and create a channel for each
+ const videoIds = customVideoId
+ .split(",")
+ .map((id) => id.trim())
+ .filter((id) => id)
+
+ videoIds.forEach((videoId, index) => {
+ this._channels.push({
+ id: `custom-${index}`,
+ youtube: "https://www.youtube.com/watch?v=" + videoId,
+ channelid: "",
+ channeltitle: "",
+ status: "off",
+ jams: customJamTitle,
+ neweststream: videoId,
+ })
})
- // const timestamp = params.get("t")
}
_channels
get channels() {
- if (this._channels) return this._channels
+ return this._channels
+ }
+
+ initChannels() {
this._channels = sorted.slice()
this._channels.forEach((channel) => {
channel.jams += " all"
})
- this.maybeAddCustomChannel()
- return this._channels
}
get jamIndex() {
@@ -529,6 +544,11 @@ class Togger {
window.history.replaceState({}, "", `?${params.toString()}`)
}
+ get fullTitle() {
+ const { videoData } = this.player.playerInfo
+ return [videoData.author, videoData.title].join(".")
+ }
+
updateChannelTitle(isLive) {
const current = this.streams[this.currentIndex]
let liveIndicator = "↺"
@@ -538,7 +558,9 @@ class Togger {
: '<span style="color: white; margin-left: 8px;">- OFF-AIR</span>'
const url = `https://www.youtube.com/watch?v=${current.neweststream}`
- const title = [this.jamName, current.channeltitle].join(".")
+ const title = [this.jamName, current.channeltitle || this.fullTitle].join(
+ ".",
+ )
const links = {
youtube: (link) =>
`<a target="toggerLink" href="${current.youtube}"><img src="youtube.svg"></span>`,
------------------------------------------------------------
commit 7100ebb25866d5a3264f31206a6e8c4fd8cb2692
Author: ffff:73.222.56.100 <ffff:73.222.56.100@togger.com>
Date: Thu Dec 12 22:16:27 2024 +0000
updated channels/okbangershow.scroll
diff --git a/channels/okbangershow.scroll b/channels/okbangershow.scroll
index 710f67c..f31c278 100644
--- a/channels/okbangershow.scroll
+++ b/channels/okbangershow.scroll
@@ -2,7 +2,7 @@
id okbangershow
youtube https://www.youtube.com/@okbangershow
-status removed
+status off
channelid UCgiZJmuxlXqhvBl415tOaCA
channeltitle OK Banger
jams warpcast
------------------------------------------------------------
commit fd0b628b2d0277d63a3a9d40b1a20f13895524ad
Author: ffff:174.219.56.17 <ffff:174.219.56.17@togger.com>
Date: Thu Dec 12 21:49:59 2024 +0000
updated channels/okbangershow.scroll
diff --git a/channels/okbangershow.scroll b/channels/okbangershow.scroll
index eba313f..710f67c 100644
--- a/channels/okbangershow.scroll
+++ b/channels/okbangershow.scroll
@@ -2,7 +2,7 @@
id okbangershow
youtube https://www.youtube.com/@okbangershow
-status live
+status removed
channelid UCgiZJmuxlXqhvBl415tOaCA
channeltitle OK Banger
jams warpcast
------------------------------------------------------------
commit 03a37ec1c4adf8f4e27942831ca28d9cafbcee86
Author: ffff:38.40.6.149 <ffff:38.40.6.149@togger.com>
Date: Thu Dec 12 20:45:38 2024 +0000
updated channels/UCoOu4D7foJWfKvcDLxqrF2Q.scroll
diff --git a/channels/UCoOu4D7foJWfKvcDLxqrF2Q.scroll b/channels/UCoOu4D7foJWfKvcDLxqrF2Q.scroll
index a6c36f8..4c99738 100644
--- a/channels/UCoOu4D7foJWfKvcDLxqrF2Q.scroll
+++ b/channels/UCoOu4D7foJWfKvcDLxqrF2Q.scroll
@@ -2,7 +2,7 @@
id UCoOu4D7foJWfKvcDLxqrF2Q
youtube https://www.youtube.com/channel/UCoOu4D7foJWfKvcDLxqrF2Q
-status live
+status off
channelid UCoOu4D7foJWfKvcDLxqrF2Q
channeltitle Chanakyaa
jams science
------------------------------------------------------------
commit 012a3b9a40858b83d361abe1530e9fa9b354666d
Author: ffff:38.40.6.149 <ffff:38.40.6.149@togger.com>
Date: Thu Dec 12 20:14:11 2024 +0000
updated channels/UCnejwhgQB5D_H7envJJgbXQ.scroll
diff --git a/channels/UCnejwhgQB5D_H7envJJgbXQ.scroll b/channels/UCnejwhgQB5D_H7envJJgbXQ.scroll
index c8662cb..e135270 100644
--- a/channels/UCnejwhgQB5D_H7envJJgbXQ.scroll
+++ b/channels/UCnejwhgQB5D_H7envJJgbXQ.scroll
@@ -2,7 +2,7 @@
id UCnejwhgQB5D_H7envJJgbXQ
youtube https://www.youtube.com/channel/UCnejwhgQB5D_H7envJJgbXQ
-status live
+status off
channelid UCnejwhgQB5D_H7envJJgbXQ
channeltitle Railway Adda247
jams science
------------------------------------------------------------
commit c8b59dcc619f0b56c1bdb77ac3d71c2302fffa21
Author: ffff:38.40.6.149 <ffff:38.40.6.149@togger.com>
Date: Thu Dec 12 20:14:10 2024 +0000
updated channels/rainsoundnatural2612.scroll
diff --git a/channels/rainsoundnatural2612.scroll b/channels/rainsoundnatural2612.scroll
index 03ac450..3ea74f9 100644
--- a/channels/rainsoundnatural2612.scroll
+++ b/channels/rainsoundnatural2612.scroll
@@ -2,7 +2,7 @@
id rainsoundnatural2612
youtube https://www.youtube.com/@rainsoundnatural2612
-status live
+status off
channelid UCU262Yzz-G0ns8SxDH0j5EA
channeltitle Rain Sound Natural
jams ambience