diff options
Diffstat (limited to 'pyload/plugin/hoster/ZDF.py')
-rw-r--r-- | pyload/plugin/hoster/ZDF.py | 6 |
1 files changed, 6 insertions, 0 deletions
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)) |