def add(ds): nonlocal count download_as_list(ds) domains_list.append(b'') domains_list.append(b'# ' + ds.fullname.encode()) domains_list.append(b'# ' + ds.url.encode()) domains_list.extend(ds.itemlist) count += len(ds.itemlist)
def add(ds): download_as_list(ds) iplist.extend(ds.itemlist) _update.append(ds.update)