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

            if url == None: return sources

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

            result = client.source(url)

            quality = re.compile('Quality *: *(.+)').findall(result)
            quality = 'SD' if len(quality) == 0 else quality[0]
            quality = re.sub('<.+?>', '', quality).strip().upper()

            if quality == 'SD': quality = 'SD'
            elif quality == 'HD': quality = 'HD'
            else: quality = 'CAM'

            url = client.parseDOM(result, 'iframe', ret='src')
            url = [i for i in url if 'filepup' in i][0]
            url = filepup.resolve(url)
            if url == None: raise Exception()

            sources.append({'source': 'Filepup', 'quality': quality, 'provider': 'Movienight', 'url': url})

            return sources
        except:
            return sources
dataset/ETHPy150Open mrknow/filmkodi/plugin.video.specto/resources/lib/sources/movienight_mv.py/source.get_sources/original