feat: add mobile devices stream config field (#2744)

This commit is contained in:
Jonas L 2023-10-14 09:13:04 +02:00 committed by GitHub
parent 8fb2a5d4e3
commit b2e512cbcd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 47 additions and 1 deletions

View file

@ -171,6 +171,7 @@ class Schema implements ConfigurationInterface
/* */->scalarNode('description')->end()
/* */->scalarNode('website')->end()
/* */->scalarNode('genre')->end()
/* */->booleanNode('mobile')->defaultFalse()->end()
/**/->end()->end()->end()
// Shoutcast outputs
@ -200,6 +201,7 @@ class Schema implements ConfigurationInterface
/* */->scalarNode('name')->end()
/* */->scalarNode('website')->end()
/* */->scalarNode('genre')->end()
/* */->booleanNode('mobile')->defaultFalse()->end()
/**/->end()->end()->end()
// System outputs

View file

@ -62,7 +62,7 @@ class Application_Model_StreamConfig
$prefix . 'description' => $output['description'] ?? '',
$prefix . 'genre' => $output['genre'] ?? '',
$prefix . 'url' => $output['website'] ?? '',
$prefix . 'mobile' => 'false',
$prefix . 'mobile' => $output['mobile'] ?? 'false',
// $prefix . 'liquidsoap_error' => 'waiting',
];
}