W2G: Following the person if he's watching a new video

This commit is contained in:
WolverinDEV 2020-08-08 11:52:55 +02:00
parent 3727b11356
commit 516bcefc36

View file

@ -97,8 +97,8 @@ class VideoViewer {
this.events.fire("notify_following", { watcherId: event.newWatcher ? event.newWatcher.clientId + " - " + event.newWatcher.clientUniqueId : undefined }); this.events.fire("notify_following", { watcherId: event.newWatcher ? event.newWatcher.clientId + " - " + event.newWatcher.clientUniqueId : undefined });
})); }));
this.events.on("notify_destroy", this.plugin.events.on("notify_following_url", () => { this.events.on("notify_destroy", this.plugin.events.on("notify_following_url", event => {
/* TODO! */ this.events.fire_async("notify_video", { url: event.newUrl });
})); }));
this.events.on("notify_destroy", this.plugin.events.on("notify_following_watcher_status", event => { this.events.on("notify_destroy", this.plugin.events.on("notify_following_watcher_status", event => {