def resolve(url):
    try:
        result = client.request(url)

        post = {}
        f = client.parseDOM(result, 'form', attrs = {'name': 'F1'})[0]
        k = client.parseDOM(f, 'input', ret='name', attrs = {'type': 'hidden'})
        for i in k: post.update({i: client.parseDOM(f, 'input', ret='value', attrs = {'name': i})[0]})
        post = post

        for i in range(0, 3):
            try:
                result = client.request(url, post=post)

                url = client.parseDOM(result, 'div', attrs = {'align': '.+?'})
                url1 = client.parseDOM(result, 'a', ret='href')

                url = [i for i in url if 'button_upload' in i][0]
                url = client.parseDOM(url, 'a', ret='href')[0]
                url = ['http' + i for i in url.split('http') if i in 'uptobox.com'][0]
                return url
            except:
                time.sleep(1)
    except:
        return
dataset/ETHPy150Open mrknow/filmkodi/plugin.video.specto/resources/lib/resolvers/uptobox.py/resolve/swapped operands of `in`