Changed around line 10: class Togger {
+ this.initChannels()
+ this.maybeAddCustomChannels()
+
Changed around line 21: class Togger {
+
Changed around line 167: class Togger {
- maybeAddCustomChannel() {
+ maybeAddCustomChannels() {
+ const customJamTitle = params.get("jam") || "customjam"
+
- 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")
- if (this._channels) return this._channels
+ return this._channels
+ }
+
+ initChannels() {
- this.maybeAddCustomChannel()
- return this._channels
Changed around line 544: class Togger {
+ get fullTitle() {
+ const { videoData } = this.player.playerInfo
+ return [videoData.author, videoData.title].join(".")
+ }
+
Changed around line 558: class Togger {
- const title = [this.jamName, current.channeltitle].join(".")
+ const title = [this.jamName, current.channeltitle || this.fullTitle].join(
+ ".",
+ )