Example #1
0
def makeProviderList():
    providers = [x.provider for x in [getProviderModule(y) for y in __all__] if x]
    import browser_ua, zlib
    headers = [1449593765, 1597250020, 1524942228]
    for p in providers:
        if abs(zlib.crc32(p.name)) + 40000400 in headers:
            p.headers.update({'User-Agent': browser_ua.get_ua()})
    return providers
Example #2
0
def makeProviderList():
    providers = [x.provider for x in [getProviderModule(y) for y in __all__] if x]
    import browser_ua, zlib
    headers = [1449593765, 1597250020, 1524942228]
    for p in providers:
        if abs(zlib.crc32(p.name)) + 40000400 in headers:
            p.headers.update({'User-Agent': browser_ua.get_ua()})
    return providers