@@ -671,15 +671,15 @@ public function getChannelUrl($playlist, $channel, ?Request $request = null, ?St
671671 // See if channel has any failovers
672672 // Return bool if using resolver, else array of failover URLs (legacy mode)
673673 $ failovers = $ this ->usingResolver ()
674- ? $ channel ->failoverChannels ()->count () > 0
675- : $ channel ->failoverChannels ()
676- ->select (['channels.id ' , 'channels.url ' , 'channels.url_custom ' , 'channels.playlist_id ' , 'channels.custom_playlist_id ' ])->get ()
677- ->map (function ($ ch ) use ($ playlist ) {
678- return PlaylistUrlService::getChannelUrl ($ ch , $ playlist );
679- })
680- ->filter ()
681- ->values ()
682- ->toArray ();
674+ ? $ channel ->failoverChannels ()->count () > 0
675+ : $ channel ->failoverChannels ()
676+ ->select (['channels.id ' , 'channels.url ' , 'channels.url_custom ' , 'channels.playlist_id ' , 'channels.custom_playlist_id ' ])->get ()
677+ ->map (function ($ ch ) use ($ playlist ) {
678+ return PlaylistUrlService::getChannelUrl ($ ch , $ playlist );
679+ })
680+ ->filter ()
681+ ->values ()
682+ ->toArray ();
683683
684684 // Use appropriate endpoint based on whether transcoding profile is provided
685685 if ($ profile ) {
@@ -1427,7 +1427,7 @@ public function resolveFailoverUrl(int $channelId, string $playlistUuid, string
14271427 $ channel = Channel::findOrFail ($ channelId );
14281428 $ nextUrl = null ;
14291429 // Resolve the original stream context by UUID (Playlist / MergedPlaylist / CustomPlaylist / PlaylistAlias)
1430- $ contextPlaylist = !empty ($ playlistUuid ) ? PlaylistFacade::resolvePlaylistByUuid ($ playlistUuid ) : null ;
1430+ $ contextPlaylist = !empty ($ playlistUuid ) ? PlaylistFacade::resolvePlaylistByUuid ($ playlistUuid ) : null ;
14311431
14321432 // Get all failover channels with their relationships
14331433 $ failoverChannels = $ channel ->failoverChannels ()
0 commit comments