mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-07-28 06:07:46 -05:00
Youtube: Remove single groupwatch restriction
Causing issues right now and really not necessary in the long run. Realistically there's probably no issue with a room running two streams.
This commit is contained in:
parent
5fa2c2a3c3
commit
3745a4db4e
|
|
@ -306,11 +306,6 @@ export class YoutubeInterface {
|
|||
const id = this.getId(url);
|
||||
const videoInfo = await this.getVideoData(id);
|
||||
if (!videoInfo) throw new Chat.ErrorMessage(`Video not found.`);
|
||||
if ([...Rooms.rooms.values()].some(r => r.roomid.startsWith('video-watch-'))) {
|
||||
throw new Chat.ErrorMessage(
|
||||
`A groupwatch is already going on. Please wait until it is done before creating another.`
|
||||
);
|
||||
}
|
||||
const num = baseRoom.nextGameNumber();
|
||||
baseRoom.saveSettings();
|
||||
const gameRoom = Rooms.createGameRoom(`video-watch-${num}` as RoomID, Utils.html`[Group Watch] ${title}`, {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user