Fix sources parsing if only one source is available (without array)
Keep parsing loop the same if there is more than one source (with array)
Informations
By default with Icecast2, when more than one source is available ["icestats"]["source"] is an array of dict (each dict is a source) but when only one source is available ["icestats"]["source"] is just a dict with the single source values.
This change check if ["icestats"]["source"] is a dict or not to make an appropriate parsing choice.
Goal
Informations
By default with Icecast2, when more than one source is available
["icestats"]["source"]
is an array of dict (each dict is a source) but when only one source is available["icestats"]["source"]
is just a dict with the single source values.This change check if
["icestats"]["source"]
is a dict or not to make an appropriate parsing choice.