Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Jp jukebox activesong #1128

wants to merge 5 commits into from

Conversation

JP5457
Copy link
Contributor

@JP5457 JP5457 commented Sep 26, 2023

Current jukebox playlist display on timelord

test

test

test

test

test

test

test

test

test

test

test

test

test

test

test

test

test

test

test

test

added next

added next

added request song

added request song

added request song
@@ -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'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$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
Copy link
Member

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)
Copy link
Member

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?

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants