Avoid logging the fallback file in song history.
This commit is contained in:
parent
b98d1600cc
commit
9de8803beb
|
@ -1004,7 +1004,14 @@ final class ConfigWriter implements EventSubscriberInterface
|
||||||
|
|
||||||
$event->appendBlock(
|
$event->appendBlock(
|
||||||
<<<LIQ
|
<<<LIQ
|
||||||
radio = fallback(id="safe_fallback", track_sensitive = false, [radio, single(id="error_jingle", "{$errorFile}")])
|
error_file = single(id="error_jingle", "{$errorFile}")
|
||||||
|
|
||||||
|
def tag_error_file(m) =
|
||||||
|
[("is_error_file", "true")]
|
||||||
|
end
|
||||||
|
error_file = metadata.map(tag_error_file, error_file)
|
||||||
|
|
||||||
|
radio = fallback(id="safe_fallback", track_sensitive = false, [radio, error_file])
|
||||||
LIQ
|
LIQ
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1016,6 +1023,7 @@ final class ConfigWriter implements EventSubscriberInterface
|
||||||
|
|
||||||
def metadata_updated(m) =
|
def metadata_updated(m) =
|
||||||
def f() =
|
def f() =
|
||||||
|
if (m["is_error_file"] != "true") then
|
||||||
if (m["title"] != !last_title or m["artist"] != !last_artist) then
|
if (m["title"] != !last_title or m["artist"] != !last_artist) then
|
||||||
last_title := m["title"]
|
last_title := m["title"]
|
||||||
last_artist := m["artist"]
|
last_artist := m["artist"]
|
||||||
|
@ -1037,6 +1045,7 @@ final class ConfigWriter implements EventSubscriberInterface
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
thread.run(f)
|
thread.run(f)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue