Skip to content

Commit

Permalink
fix: handlebars around loading channels. if one fails because it's mi…
Browse files Browse the repository at this point in the history
…ssing metadata keep going with the others.
  • Loading branch information
lart2150 committed Jan 3, 2024
1 parent 3a410b0 commit 155397d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/com/tivo/kmttg/gui/table/channelsTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,11 @@ public void rpcUpdateChannels(String tivoName, JSONArray changed) {
if (r.success) {
for (int i=0; i<changed.length(); ++i) {
JSONObject channel = changed.getJSONObject(i);
if (!channel.has("channelNumber") || !channel.has("callSign") ) {
log.warn("channel missing number or sign: " + channel.toString());
continue;
}

log.print("Setting " + channel.getString("channelNumber") + "=" + channel.getString("callSign") +
" isReceived=" + channel.getBoolean("isReceived"));
JSONObject result = r.Command("ChannelUpdate", channel);
Expand Down

0 comments on commit 155397d

Please sign in to comment.