ОсновноеRadiotalkПользовательское
Технологии вещания, софт, скрипты
3   •   Посмотреть все темы

Liquidsoap 2.0 и инициализация переменных...

 

96
solariz @solariz
Во времена liquidsoap 1.4 прекрасно работало такое решение:
def current_user = ref "" end
def authorize (user, password) =
....[сut]
cu = get_process_output("getusername.py #{password}")
current_user := cu
....[сut]
end
def live_tag (j)
rewrite_metadata([
("artist", !current_user),
], update=false, strip=true, j)
end

теперь же, получаю ошибку:
Error 5: this value has type string but it should be a subtype of ref(_)

Если у вас, уважаемые есть какие-то мысли, подскажите пожалуйста.