From 22b8a54c4a9f255dd25c485e8a60f88f89d27194 Mon Sep 17 00:00:00 2001 From: kKaskak <117831817+kKaskak@users.noreply.github.com> Date: Tue, 3 Oct 2023 12:37:31 +0300 Subject: [PATCH] Revert "stream info design update" This reverts commit 447fab71d226a7ff506c707611776a68af855a2e. --- src/common/MetaPreview/MetaPreview.js | 66 +++++++------------ src/common/MetaPreview/styles.less | 52 +++------------ .../MetaDetails/StreamsList/Stream/Stream.js | 27 ++------ .../Stream/StreamInfo/StreamInfo.js | 61 ----------------- .../StreamsList/Stream/StreamInfo/index.js | 6 -- .../StreamsList/Stream/StreamInfo/styles.less | 45 ------------- .../StreamsList/Stream/parseTorrentInfo.js | 36 ---------- .../StreamsList/Stream/styles.less | 39 ++++------- .../MetaDetails/StreamsList/styles.less | 1 - 9 files changed, 54 insertions(+), 279 deletions(-) delete mode 100644 src/routes/MetaDetails/StreamsList/Stream/StreamInfo/StreamInfo.js delete mode 100644 src/routes/MetaDetails/StreamsList/Stream/StreamInfo/index.js delete mode 100644 src/routes/MetaDetails/StreamsList/Stream/StreamInfo/styles.less delete mode 100644 src/routes/MetaDetails/StreamsList/Stream/parseTorrentInfo.js diff --git a/src/common/MetaPreview/MetaPreview.js b/src/common/MetaPreview/MetaPreview.js index c4a96fce5..9af7e6699 100644 --- a/src/common/MetaPreview/MetaPreview.js +++ b/src/common/MetaPreview/MetaPreview.js @@ -194,50 +194,34 @@ const MetaPreview = ({ className, compact, name, logo, background, runtime, rele }
-
- { - typeof toggleInLibrary === 'function' ? - - : - null - } - { - typeof toggleInLibrary === 'function' && compact ? -
{inLibrary ? t('REMOVE_FROM_LIB') : t('ADD_TO_LIB')}
- : - null - } -
-
- { - typeof trailerHref === 'string' ? - - : - null - } - { - typeof trailerHref === 'string' && compact ? -
{t('WATCH_TRAILER')}
- : - null - } -
+ { + typeof toggleInLibrary === 'function' ? + + : + null + } + { + typeof trailerHref === 'string' ? + + : + null + } { typeof showHref === 'string' && compact ? { const profile = useProfile(); const streamingServer = useStreamingServer(); const { core } = useServices(); const toast = useToast(); - const torrentInfo = parseTorrentInfo(description); - const {streamName, streamSeeders, streamSize, streamProvider, streamFlags } = torrentInfo; const href = React.useMemo(() => { const haveStreamingServer = streamingServer.settings !== null && streamingServer.settings.type === 'Ready'; return deepLinks ? @@ -83,7 +79,7 @@ const Stream = ({ className, videoId, videoReleased, addonName, name, descriptio