MCPcopy Create free account
hub / github.com/pyload/pyload / process

Method process

module/plugins/hoster/ZDF.py:41–60  ·  view source on GitHub ↗
(self, pyfile)

Source from the content-addressed store, hash-verified

39 return int(re.search(r'\D*(\d{4,})\D*', url).group(1))
40
41 def process(self, pyfile):
42 xml = etree.fromstring(
43 self.load(
44 self.XML_API %
45 self.get_id(
46 pyfile.url),
47 decode=False))
48
49 status = xml.findtext("./status/statuscode")
50 if status != "ok":
51 self.fail(_("Error retrieving manifest"))
52
53 video = xml.find("video")
54
55 pyfile.name = video.findtext("information/title")
56
57 target_url = sorted((v for v in video.iter("formitaet") if self.video_valid(v)),
58 key=self.video_key)[-1].findtext("url")
59
60 self.download(target_url)

Callers 1

runMethod · 0.45

Calls 7

get_idMethod · 0.95
video_validMethod · 0.95
_Function · 0.50
loadMethod · 0.45
failMethod · 0.45
findMethod · 0.45
downloadMethod · 0.45

Tested by

no test coverage detected