def updateEmission(self,emission,force=False): if emission is None: log.error("Pas d'emission") raise EmissionNotFetchable(emission) newVideos=set() # Refresh content fetcher=EmissionFetcher() videoParser=VideoParser(emission) data=fetcher.fetch(emission) try: root=lxml.html.fromstring(data) except lxml.etree.XMLSyntaxError,e: videoParser.writeToFile(data,emission,emission.pid) log.error('Parsing error') return []