diff --git a/src/common/MetaPreview/MetaPreview.js b/src/common/MetaPreview/MetaPreview.js index 9af7e6699..c4a96fce5 100644 --- a/src/common/MetaPreview/MetaPreview.js +++ b/src/common/MetaPreview/MetaPreview.js @@ -194,34 +194,50 @@ const MetaPreview = ({ className, compact, name, logo, background, runtime, rele }
- { - typeof toggleInLibrary === 'function' ? - - : - null - } - { - typeof trailerHref === 'string' ? - - : - null - } +
+ { + 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 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 ? @@ -79,7 +83,7 @@ const Stream = ({ className, videoId, videoReleased, addonName, name, descriptio