Skip to content

Commit

Permalink
Fixed apple tv window open
Browse files Browse the repository at this point in the history
  • Loading branch information
yumata committed Jan 8, 2024
1 parent 635cdf5 commit 9c4941e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -15012,7 +15012,7 @@
} else lauch();
} else if (Platform.is('apple_tv')) {
data.url = data.url.replace('&preload', '&play').replace(/\s/g, '%20');
if (Storage.field('player') == 'vlc') window.open('vlc-x-callback://x-callback-url/stream?url=' + encodeURIComponent(data.url));else if (Storage.field('player') == 'infuse') window.open('infuse://x-callback-url/play?url=' + encodeURIComponent(data.url));else if (Storage.field('player') == 'tvos') window.open('lampa://video?player=tvos&src=' + encodeURIComponent(data.url));else lauch();
if (Storage.field('player') == 'vlc') window.location.assign('vlc-x-callback://x-callback-url/stream?url=' + encodeURIComponent(data.url));else if (Storage.field('player') == 'infuse') window.location.assign('infuse://x-callback-url/play?url=' + encodeURIComponent(data.url));else if (Storage.field('player') == 'tvos') window.location.assign('lampa://video?player=tvos&src=' + encodeURIComponent(data.url));else lauch();
} else if (Platform.is('webos') && (Storage.field('player') == 'webos' || launch_player == 'webos')) {
data.url = data.url.replace('&preload', '&play');
runWebOS({
Expand Down Expand Up @@ -15076,7 +15076,7 @@
lauch();
} else lauch();
} else if (Platform.is('apple_tv')) {
if (Storage.field('player_iptv') == 'vlc') window.open('vlc-x-callback://x-callback-url/stream?url=' + encodeURIComponent(data.url));else if (Storage.field('player_iptv') == 'infuse') window.open('infuse://x-callback-url/play?url=' + encodeURIComponent(data.url));else if (Storage.field('player_iptv') == 'tvos') window.open('lampa://video?player=tvos&src=' + encodeURIComponent(data.url));else lauch();
if (Storage.field('player_iptv') == 'vlc') window.location.assign('vlc-x-callback://x-callback-url/stream?url=' + encodeURIComponent(data.url));else if (Storage.field('player_iptv') == 'infuse') window.location.assign('infuse://x-callback-url/play?url=' + encodeURIComponent(data.url));else if (Storage.field('player_iptv') == 'tvos') window.location.assign('lampa://video?player=tvos&src=' + encodeURIComponent(data.url));else lauch();
} else if (Platform.is('webos') && (Storage.field('player_iptv') == 'webos' || launch_player == 'webos')) {
runWebOS({
need: 'com.webos.app.photovideo',
Expand Down

0 comments on commit 9c4941e

Please sign in to comment.