fix(#734): add watermark for india

pull/279/head
andreidekterev 2 years ago
parent 02c72a87f1
commit 9f0c779246
  1. 6
      src/features/StreamPlayer/index.tsx
  2. 1
      src/requests/getMatchInfo.tsx

@ -42,6 +42,8 @@ import {
const tournamentsWithWatermark = { const tournamentsWithWatermark = {
316: 'Tunisia', 316: 'Tunisia',
1136: 'Brasil', 1136: 'Brasil',
1448: 'India',
5950: 'India',
} }
/** /**
* HLS плеер, применяется на лайв и завершенных матчах * HLS плеер, применяется на лайв и завершенных матчах
@ -163,9 +165,9 @@ export const StreamPlayer = (props: Props) => {
<Loader color='#515151' /> <Loader color='#515151' />
</LoaderWrapper> </LoaderWrapper>
{user {user
&& Boolean( && (Boolean(
tournamentsWithWatermark[profile?.tournament.id as keyof typeof tournamentsWithWatermark], tournamentsWithWatermark[profile?.tournament.id as keyof typeof tournamentsWithWatermark],
) ) || profile?.watermark)
&& playing && playing
&& isLive && isLive
&& ( && (

@ -68,6 +68,7 @@ export type MatchInfo = {
team2: Team, team2: Team,
tournament: MatchTournament, tournament: MatchTournament,
video_bounds?: VideoBounds, video_bounds?: VideoBounds,
watermark?: boolean,
youtube_link?: string, youtube_link?: string,
} | null } | null

Loading…
Cancel
Save