Update IF Case to Use profile.settings.playerType

This commit is contained in:
Alexandru Branza 2023-05-29 17:03:36 +03:00
parent 50fc9b8a48
commit 8f80d74883

View file

@ -12,7 +12,7 @@ const Stream = ({ className, addonName, name, description, thumbnail, progress,
const profile = useProfile();
const href = React.useMemo(() => {
return deepLinks ?
profile.settings.playInExternalPlayer ?
profile.settings.playerType === 'external' ?
deepLinks.externalPlayer.vlc[isMobile() || 'desktop'] || deepLinks.externalPlayer.href
:
typeof deepLinks.player === 'string' ?