code change to repeat autoplaylists lacking UI option to enable/disable

This commit is contained in:
Robb Ebright 2017-03-30 23:01:31 -04:00
parent 0fdd6d8d57
commit 7a944ac9ce
1 changed files with 4 additions and 0 deletions

View File

@ -32,7 +32,11 @@ class AutoPlaylistManager {
Logging::info("Scheduling $playlistid");
// call the addPlaylist to show function and don't check for user permission to avoid call to non-existant user object
$si->addPlaylistToShow($playlistid, false);
while ($si->getPercentScheduled() < 100) {
$si->addPlaylistToShow($playlistid, false);
}
$si->setAutoPlaylistBuilt(true);
}
Application_Model_Preference::setAutoPlaylistPollLock(microtime(true));
}