|
|
@ -443,35 +443,41 @@ const TvDetails: React.FC<TvDetailsProps> = ({ tv }) => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{data.mediaInfo?.plexUrl ||
|
|
|
|
{(
|
|
|
|
(data.mediaInfo?.plexUrl4k &&
|
|
|
|
trailerUrl
|
|
|
|
(hasPermission(Permission.REQUEST_4K) ||
|
|
|
|
? data.mediaInfo?.plexUrl ||
|
|
|
|
hasPermission(Permission.REQUEST_4K_TV))) ? (
|
|
|
|
(data.mediaInfo?.plexUrl4k &&
|
|
|
|
<>
|
|
|
|
(hasPermission(Permission.REQUEST_4K) ||
|
|
|
|
{data.mediaInfo?.plexUrl &&
|
|
|
|
hasPermission(Permission.REQUEST_4K_TV)))
|
|
|
|
|
|
|
|
: data.mediaInfo?.plexUrl &&
|
|
|
|
data.mediaInfo?.plexUrl4k &&
|
|
|
|
data.mediaInfo?.plexUrl4k &&
|
|
|
|
(hasPermission(Permission.REQUEST_4K) ||
|
|
|
|
(hasPermission(Permission.REQUEST_4K) ||
|
|
|
|
hasPermission(Permission.REQUEST_4K_TV)) && (
|
|
|
|
hasPermission(Permission.REQUEST_4K_TV))
|
|
|
|
<ButtonWithDropdown.Item
|
|
|
|
) ? (
|
|
|
|
onClick={() => {
|
|
|
|
<>
|
|
|
|
window.open(data.mediaInfo?.plexUrl4k, '_blank');
|
|
|
|
{data.mediaInfo?.plexUrl &&
|
|
|
|
}}
|
|
|
|
data.mediaInfo?.plexUrl4k &&
|
|
|
|
buttonType="ghost"
|
|
|
|
(hasPermission(Permission.REQUEST_4K) ||
|
|
|
|
>
|
|
|
|
hasPermission(Permission.REQUEST_4K_TV)) ? (
|
|
|
|
{intl.formatMessage(messages.play4konplex)}
|
|
|
|
<ButtonWithDropdown.Item
|
|
|
|
</ButtonWithDropdown.Item>
|
|
|
|
onClick={() => {
|
|
|
|
)}
|
|
|
|
window.open(data.mediaInfo?.plexUrl4k, '_blank');
|
|
|
|
{(data.mediaInfo?.plexUrl || data.mediaInfo?.plexUrl4k) &&
|
|
|
|
}}
|
|
|
|
trailerUrl && (
|
|
|
|
buttonType="ghost"
|
|
|
|
<ButtonWithDropdown.Item
|
|
|
|
>
|
|
|
|
onClick={() => {
|
|
|
|
{intl.formatMessage(messages.play4konplex)}
|
|
|
|
window.open(trailerUrl, '_blank');
|
|
|
|
</ButtonWithDropdown.Item>
|
|
|
|
}}
|
|
|
|
) : null}
|
|
|
|
buttonType="ghost"
|
|
|
|
{trailerUrl ? (
|
|
|
|
>
|
|
|
|
<ButtonWithDropdown.Item
|
|
|
|
{intl.formatMessage(messages.watchtrailer)}
|
|
|
|
onClick={() => {
|
|
|
|
</ButtonWithDropdown.Item>
|
|
|
|
window.open(trailerUrl, '_blank');
|
|
|
|
)}
|
|
|
|
}}
|
|
|
|
|
|
|
|
buttonType="ghost"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{intl.formatMessage(messages.watchtrailer)}
|
|
|
|
|
|
|
|
</ButtonWithDropdown.Item>
|
|
|
|
|
|
|
|
) : null}
|
|
|
|
</>
|
|
|
|
</>
|
|
|
|
) : null}
|
|
|
|
) : null}
|
|
|
|
</ButtonWithDropdown>
|
|
|
|
</ButtonWithDropdown>
|
|
|
|