-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jp jukebox activesong #1128
base: master
Are you sure you want to change the base?
Jp jukebox activesong #1128
Conversation
@@ -687,6 +688,8 @@ public static function getCurrentAndNext($time = null, $n = 1, $filter = [1]) | |||
$timeslot = self::getCurrentTimeslot($time, $filter); | |||
$next = self::getNextTimeslot($time, $filter); | |||
|
|||
$currentJukebox = iTones_playlist::getPlaylistAtTime(date('H:i:s')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$currentJukebox = iTones_playlist::getPlaylistAtTime(date('H:i:s')); | |
$currentJukebox = iTones_Playlist::getPlaylistAtTime(date('H:i:s')); |
'SELECT playlist.playlistid | ||
FROM jukebox.playlists playlist | ||
INNER JOIN jukebox.playlist_availability avail ON playlist.playlistid=avail.playlistid | ||
WHERE playlist.category=2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a Config
variable for the category ID? We'd rather not hard-code it if possible.
@@ -235,6 +235,27 @@ public function getTitle() | |||
return $this->title; | |||
} | |||
|
|||
public function getPlaylistAtTime($time) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What will this do if there are multiple active playlists at a time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just return one of them. This shouldn't matter as we are planning to move to only having a single active playlist at any point.
Current jukebox playlist display on timelord