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:
Buster "Silver Eagle" Neece 2020-05-18 02:03:22 -05:00
parent 3d36fd611d
commit bb1188ebc9
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
1 changed files with 11 additions and 5 deletions

View File

@ -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