CC-5363 : pushing a file twice, noticeable replaygain switch
This commit is contained in:
parent
f2a794168d
commit
f91cb39e46
|
@ -140,14 +140,14 @@ class PypoLiquidsoap():
|
||||||
|
|
||||||
#Iterate over the new files, and compare them to currently scheduled
|
#Iterate over the new files, and compare them to currently scheduled
|
||||||
#tracks. If already in liquidsoap queue still need to make sure they don't
|
#tracks. If already in liquidsoap queue still need to make sure they don't
|
||||||
#have different attributes such replay_gain etc.
|
#have different attributes
|
||||||
|
#if replay gain changes, it shouldn't change the amplification of the currently playing song
|
||||||
for i in scheduled_now_files:
|
for i in scheduled_now_files:
|
||||||
if i["row_id"] in row_id_map:
|
if i["row_id"] in row_id_map:
|
||||||
mi = row_id_map[i["row_id"]]
|
mi = row_id_map[i["row_id"]]
|
||||||
correct = mi['start'] == i['start'] and \
|
correct = mi['start'] == i['start'] and \
|
||||||
mi['end'] == i['end'] and \
|
mi['end'] == i['end'] and \
|
||||||
mi['row_id'] == i['row_id'] and \
|
mi['row_id'] == i['row_id']
|
||||||
mi['replay_gain'] == i['replay_gain']
|
|
||||||
|
|
||||||
if not correct:
|
if not correct:
|
||||||
#need to re-add
|
#need to re-add
|
||||||
|
|
Loading…
Reference in New Issue