From e00ef98491f79ae8aa972ae1473dae4a7b78c07e Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 13 Apr 2015 17:20:59 +0200 Subject: Cleanup --- pyload/plugin/hoster/ZDF.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pyload/plugin/hoster/ZDF.py') diff --git a/pyload/plugin/hoster/ZDF.py b/pyload/plugin/hoster/ZDF.py index c02eadc23..6f17df61a 100644 --- a/pyload/plugin/hoster/ZDF.py +++ b/pyload/plugin/hoster/ZDF.py @@ -23,6 +23,8 @@ class ZDF(Hoster): @staticmethod + + def video_key(video): return ( int(video.findtext("videoBitrate", "0")), @@ -31,12 +33,16 @@ class ZDF(Hoster): @staticmethod + + def video_valid(video): return video.findtext("url").startswith("http") and video.findtext("url").endswith(".mp4") and \ video.findtext("facets/facet").startswith("progressive") @staticmethod + + def get_id(url): return int(re.search(r"\D*(\d{4,})\D*", url).group(1)) -- cgit v1.2.3