Make stream-type remote URL playlists managed by Liquidsoap only.
The Liquidsoap team has clarified that sending an annotated URL that points to a remote stream (as we do with this stream type) is not supported; as such, we're simply disabling it and letting the Liquidsoap AutoDJ handle it.
This commit is contained in:
parent
3d36fd611d
commit
bb1188ebc9
|
@ -510,11 +510,17 @@ class StationPlaylist
|
|||
*/
|
||||
public function isPlayable(): bool
|
||||
{
|
||||
return ($this->is_enabled
|
||||
&& (self::SOURCE_SONGS !== $this->source || $this->media_items->count() > 0)
|
||||
&& !$this->backendInterruptOtherSongs()
|
||||
&& !$this->backendMerge()
|
||||
&& !$this->backendLoopPlaylistOnce());
|
||||
// Any "advanced" settings are not managed by AzuraCast AutoDJ.
|
||||
if (!$this->is_enabled || $this->backendInterruptOtherSongs() || $this->backendMerge() || $this->backendLoopPlaylistOnce()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (self::SOURCE_SONGS === $this->source) {
|
||||
return $this->media_items->count() > 0;
|
||||
}
|
||||
|
||||
// Remote stream playlists aren't supported by the AzuraCast AutoDJ.
|
||||
return self::REMOTE_TYPE_PLAYLIST === $this->remote_type;
|
||||
}
|
||||
|
||||
public function getBackendOptions(): array
|
||||
|
|
Loading…
Reference in New Issue