mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-23 01:08:23 +02:00
Favor cuts expiring first in playback
This commit is contained in:
parent
1d32d1d120
commit
43f7bb297a
@ -15075,3 +15075,6 @@
|
||||
2016-04-23 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Renamed the 'ClockAddress' parameter to 'HostAddress' in
|
||||
'rlm/rlm_walltime.c'.
|
||||
2016-04-23 Brian McGlynn <brian.mcglynn@geneseemedia.net>
|
||||
* Updated Cart Scheduler to favor weighted playback for cuts expiring
|
||||
first following the number of plays
|
||||
|
@ -129,7 +129,8 @@ bool RDCart::selectCut(QString *cut,const QTime &time) const
|
||||
QString().sprintf("(CART_NUMBER=%u)&&(EVERGREEN=\"N\")&&",cart_number)+
|
||||
"(LENGTH>0)";
|
||||
if(useWeighting()) {
|
||||
sql+=" order by LOCAL_COUNTER";
|
||||
sql+=" order by LOCAL_COUNTER ASC, ISNULL(END_DATETIME), END_DATETIME ASC, \
|
||||
LAST_PLAY_DATETIME ASC";
|
||||
}
|
||||
else {
|
||||
sql+=" order by LAST_PLAY_DATETIME desc";
|
||||
|
Loading…
x
Reference in New Issue
Block a user