def get_sources(self, url, hosthdDict, hostDict, locDict):
        try:
            sources = []

            if url == None: return sources

            sources_url = urlparse.urljoin(self.base_link, url)

            result = client.source(sources_url, close=False)
            result = re.sub(r'[^\x00-\x7F]+','', result)

            result = re.compile('(<option.*?</option>)', re.DOTALL).findall(result)
            result = [(client.parseDOM(i, 'option', ret='href'), client.parseDOM(i, 'option', ret='value'), client.parseDOM(i, 'option')) for i in result]
            result = [i[0] + i[1] for i in result if len(i[2]) > 0 and i[2][0] == 'Altyazsz'][0][0]

            url = urlparse.urljoin(self.base_link, result)

            result = client.source(url, close=False)

            url = client.parseDOM(result, 'span', attrs = {'class': 'object-wrapper'})[0]
            url = client.parseDOM(url, 'iframe', ret='src')[0]
            url = client.replaceHTMLCodes(url)

            result = client.source(url, close=False)

            try:
                r = re.compile('"?file"?\s*:\s*"([^"]+)"\s*,\s*"?label"?\s*:\s*"(\d+)p?"').findall(result)
                if r == []: raise Exception()
                r = [(i[0].replace('\\/', '/').replace('\\&', '&').decode('unicode_escape'), int(i[1])) for i in r]

                u = [((i[0], urllib.quote_plus(client.agent()), urllib.quote_plus(sources_url)) % '%s|User-Agent=%s&Referer=%s', i[1], 'Dizibox') for i in r if not 'google' in i[0]]
                u += [(i[0], i[1], 'GVideo') for i in r if 'google' in i[0]]

                try: sources.append({'source': [i[2] for i in u if i[1] >= 1080][0], 'quality': '1080p', 'provider': 'Dizibox', 'url': [i[0] for i in u if i[1] >= 1080][0]})
                except: pass
                try: sources.append({'source': [i[2] for i in u if 720 <= i[1] < 1080][0], 'quality': 'HD', 'provider': 'Dizibox', 'url': [i[0] for i in u if 720 <= i[1] < 1080][0]})
                except: pass
                try: sources.append({'source': [i[2] for i in u if i[1] < 720][0], 'quality': 'SD', 'provider': 'Dizibox', 'url': [i[0] for i in u if i[1] < 720][0]})
                except: pass

                return sources
            except:
                pass

            try:
                if '.dizibox.' in url: url = re.compile('location\.href\s*=\s*"(.+?)"').findall(result)[0]

                host = urlparse.urlparse(url).netloc
                host = host.replace('mail.ru', 'mailru.ru').rsplit('.', 1)[0].split('.')[-1].lower()

                strm = resolvers.request(url)
                if strm == url or strm == None: raise Exception()

                if type(strm) == list:
                    for i in strm: sources.append({'source': host, 'quality': i['quality'], 'provider': 'Dizibox', 'url': i['url']})
                else:
                    sources.append({'source': host, 'quality': 'HD', 'provider': 'Dizibox', 'url': strm})

                return sources
            except:
                pass

        except:
            return sources
dataset/ETHPy150Open mrknow/filmkodi/plugin.video.specto/resources/lib/sources/dizibox_tv.py/source.get_sources/swapped operands of `%`