disable timeknob and coverart if webradio
Posted: 15 Jan 2015, 09:21
I want to disable the timeknob and coverart on the playback tab when playing webradio. The timeknob is of no use for live streams and the webradios I listen to have no coverart so that box only wastes space (extra scrolling to reach the volume knob on android device).
To do this I need to add some conditional statements to playback.php, similar to this
but instead of checking for coverart I want to check if the currently playing item is not a webstream. Can you describe the php syntax for such a check?
I posted in "feature request" since I found no better forum category for this post. And I do request an option to disable timeknob and coverart for webstreams. But for know I mostly want to know the syntax so I can myself manually modify the playback.php on my pi.
To do this I need to add some conditional statements to playback.php, similar to this
- Code: Select all
<?php if ($this->coverart == 1): ?>
but instead of checking for coverart I want to check if the currently playing item is not a webstream. Can you describe the php syntax for such a check?
I posted in "feature request" since I found no better forum category for this post. And I do request an option to disable timeknob and coverart for webstreams. But for know I mostly want to know the syntax so I can myself manually modify the playback.php on my pi.