diff --git a/DownKyi/Services/Utils.cs b/DownKyi/Services/Utils.cs index 25f9725..b2fdaf9 100644 --- a/DownKyi/Services/Utils.cs +++ b/DownKyi/Services/Utils.cs @@ -165,7 +165,10 @@ namespace DownKyi.Services if (videoQualityExist == null) { List videoCodecList = new List(); - ListHelper.AddUnique(videoCodecList, codecName); + if (codecName != string.Empty) + { + ListHelper.AddUnique(videoCodecList, codecName); + } VideoQuality videoQuality = new VideoQuality() { @@ -179,7 +182,10 @@ namespace DownKyi.Services { if (!videoQualityList[videoQualityList.IndexOf(videoQualityExist)].VideoCodecList.Exists(t => t.Equals(codecName))) { - videoQualityList[videoQualityList.IndexOf(videoQualityExist)].VideoCodecList.Add(codecName); + if (codecName != string.Empty) + { + videoQualityList[videoQualityList.IndexOf(videoQualityExist)].VideoCodecList.Add(codecName); + } } }