Skip to content

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Aug 5, 2024
1 parent a9110e7 commit 4f8aee8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,8 @@ export class Room {
// prefer reddit m3u8 streams over the mp4 links as the m3u8 streams contain audio.
data = reddit_m3u8 || reddit_mp4 || data;
} else if (
data.startsWith('https://www.twitch.tv') ||
data.startsWith('https://twitch.tv')
data?.startsWith('https://www.twitch.tv') ||
data?.startsWith('https://twitch.tv')
) {
try {
// Extract m3u8 data
Expand Down

0 comments on commit 4f8aee8

Please sign in to comment.