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