From b6bef36e82aab6f083ad2e9bf5d5e68a9104b760 Mon Sep 17 00:00:00 2001 From: ner Date: Sat, 23 Aug 2025 23:01:25 +0300 Subject: [PATCH] feat: added vlc play button --- .../components/Actions/index.tsx | 22 +++++++++++++++++-- lib/utils.ts | 2 ++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/components/Preview/components/Torrents/components/TorrentsTable/components/Actions/index.tsx b/components/Preview/components/Torrents/components/TorrentsTable/components/Actions/index.tsx index ca366e8..ab0b744 100644 --- a/components/Preview/components/Torrents/components/TorrentsTable/components/Actions/index.tsx +++ b/components/Preview/components/Torrents/components/TorrentsTable/components/Actions/index.tsx @@ -1,12 +1,12 @@ import { FC, useMemo } from 'react'; -import { Cast, Download, ListVideo, Loader, Magnet, Play } from 'lucide-react'; +import { Cast, Download, ListVideo, Loader, Magnet, Play, TrafficCone } from 'lucide-react'; import { Button } from '@/components/ui/button'; import ButtonsGroup from '@/components/ui/buttons-group'; import { Quality } from '@/data/parsers/yts/models'; import { useM3UUrl } from '@/hooks/useM3UStreamUrl'; import { useStreamUrl } from '@/hooks/useStreamUrl'; -import { cn, detectSafari, getMagnetHash } from '@/lib/utils'; +import { cn, detectSafari, getMagnetHash, isStandaloneApp } from '@/lib/utils'; import { providers } from '../../../../constants'; import { useCastMagnet, usePrefix } from '../../../../hooks/useMagnetHosts'; @@ -30,6 +30,8 @@ const Actions: FC = ({ torrent, backdrop, title, provider, playerEntryId, const streamUrl = useStreamUrl(); const M3UUrl = useM3UUrl(); + const isStandalone = isStandaloneApp(); + const { isIOS, isSafari } = detectSafari(); const isHEVC = torrent.codec?.includes('265') || torrent.codec?.toLowerCase().includes('hevc'); @@ -107,6 +109,22 @@ const Actions: FC = ({ torrent, backdrop, title, provider, playerEntryId, ) )} + {isStandalone && ( + + )} {!magnet && (