

def get_object_tag(self, node):
    child_embed_tag = self.parser.getElementsByTag(node, 'embed')
    if (child_embed_tag and (child_embed_tag[0] in self.candidates)):
        self.candidates.remove(child_embed_tag[0])
    src_node = self.parser.getElementsByTag(node, tag='param', attr='name', value='movie')
    if (not src_node):
        return None
    src = self.parser.getAttribute(src_node[0], 'value')
    provider = self.get_provider(src)
    if (not provider):
        return None
    video = self.get_video(node)
    video.provider = provider
    video.src = src
    return video

dataset/ETHPy150Open codelucas/newspaper/newspaper/videos/extractors.py VideoExtractor.get_object_tag/original