def handleList(self, httpHandler, includeInvalid):
    host = httpHandler.headers.get('host')
    hostparts = host.split(':')
    outdata = []
    src = (self.additionalAddOns + self.addonList)
    for addon in src:
        if ((addon.get('invalid') == True) and (not includeInvalid)):
            continue
        item = addon.copy()
        if (hostparts is not None):
            item['originalUrl'] = addon['url']
            item['url'] = addon['url'].replace('$HOST', hostparts[0])
        outdata.append(item)
    rt = AVNUtil.getReturnData(items=outdata)
    return rt
def handleList(self, httpHandler, includeInvalid):
    host = httpHandler.headers.get('host')
    hostparts = host.split(':')
    outdata = []
    src = (self.additionalAddOns + self.addonList)
    for addon in src:
        if ((addon.get('invalid') == True) and (not includeInvalid)):
            continue
        item = addon.copy()
        if (hostparts is not None):
            item['originalUrl'] = addon['url']
            item['url'] = addon['url'].replace('$HOST', hostparts[0])
        outdata.append(item)
    rt = AVNUtil.getReturnData(items=outdata)
    return rt