예제 #1
0
    def __findRedirect(self, page, referer='', demystify=False):
        data = common.getHTML(page, None, referer=referer, xml=False, mobile=False, demystify=demystify)
        
        if findVideoFrameLink(page, data):
            return findVideoFrameLink(page, data)
        elif findContentRefreshLink(data):
            return findContentRefreshLink(data)
        elif findEmbedPHPLink(data):
            return findEmbedPHPLink(data)
            
        if not demystify:
            return self.__findRedirect(page, referer, True)

        return page
예제 #2
0
    def __findRedirect(self, page, referer='', demystify=False):
        data = common.getHTML(page, referer = referer, demystify = demystify)

        link = findVideoFrameLink(page, data)
        if link:
            return link

        if not demystify:
            return self.__findRedirect(page, referer, True)

        return page
예제 #3
0
    def __findRedirect(self, page, referer='', demystify=False):
        data = common.getHTML(page, referer=referer, demystify=demystify)

        link = findVideoFrameLink(page, data)
        if link:
            return link
        else:
            link = findContentRefreshLink(data)
            if link:
                return link
            else:
                link = findEmbedPHPLink(data)
                if link:
                    return link

        if not demystify:
            return self.__findRedirect(page, referer, True)

        return page
    def __findRedirect(self, page, referer='', demystify=False):
        data = common.getHTML(page, None, referer = referer, demystify = demystify)

        link = findVideoFrameLink(page, data)
        if link:
            return link
        else:
            link = findContentRefreshLink(data)
            if link:
                return link
            else:
                link = findEmbedPHPLink(data)
                if link:
                    return link
            
        if not demystify:
            return self.__findRedirect(page, referer, True)

        return page