changes for single bouquet import

This commit is contained in:
DYefremov
2019-02-25 23:35:50 +03:00
parent 86c30dd2c1
commit 6a2fda5ec0

View File

@@ -1333,7 +1333,7 @@ class Application(Gtk.Application):
name, sep, suf = f_name.rpartition(".")
bq = get_bouquet(path, name, suf)
bouquet = Bouquet(name=bq[0], type=BqType(suf).value, services=bq[1], locked=None, hidden=None)
s_values = self._services
imported = list(filter(lambda x: x.data in s_values or x.type is BqServiceType.IPTV, bouquet.services))
if len(imported) == 0: