if(!string.IsNullOrEmpty(qualityId)||!int.TryParse(qualityId,outqualityProfile))// try to parse the passed in quality, otherwise use the settings default quality
varqualityProfile=0;
if(!string.IsNullOrEmpty(qualityId))// try to parse the passed in quality, otherwise use the settings default quality