From a4f8e714b8b9b070c30ed640b25723255c4b328b Mon Sep 17 00:00:00 2001 From: Ivaylo Markov Date: Thu, 5 Nov 2020 23:00:18 +0200 Subject: [PATCH] Don't display hidden language tracks in legend --- schedule/parse.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/schedule/parse.php b/schedule/parse.php index ecbc59f..eabd025 100644 --- a/schedule/parse.php +++ b/schedule/parse.php @@ -350,7 +350,10 @@ function parseData($config, $data) { // Create the legend $legend = ''; - foreach($data['tracks'] as $track) { + foreach($data['tracks'] as $track_id => $track) { + if ( in_array($track_id, $config['hidden_language_tracks'])) { + continue; + } $legend .= '' . $track['name'][$config['lang']] . ''; }