Map<String, String> get resolutions { Map<String, String> ret = {}; for (var q in sources) { if (q == null) { continue; } ret.addAll({q.quality: q.file.url.toString()}); } return ret; }