diff options
author | m42e <iceboy@iceboy.de> | 2014-03-19 15:04:39 +0100 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2014-03-19 15:04:39 +0100 |
commit | d1a4bc65f6d560b1a851c3359f6511a1e96025e3 (patch) | |
tree | 0481523109ba1d6df3c138d74b92026fb2744783 | |
parent | Rapidgator: Pattern updated (diff) | |
download | pyload-d1a4bc65f6d560b1a851c3359f6511a1e96025e3.tar.xz |
ZDF: ignore series id, use progressive only, not hbbtv
Merges #544
-rw-r--r-- | module/plugins/hoster/ZDF.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/hoster/ZDF.py b/module/plugins/hoster/ZDF.py index 9940fd078..e45717186 100644 --- a/module/plugins/hoster/ZDF.py +++ b/module/plugins/hoster/ZDF.py @@ -10,7 +10,7 @@ class ZDF(Hoster): # Based on zdfm by Roland Beermann # http://github.com/enkore/zdfm/ __name__ = "ZDF Mediathek" - __version__ = "0.7" + __version__ = "0.8" __pattern__ = r"http://www\.zdf\.de/ZDFmediathek/[^0-9]*([0-9]+)[^0-9]*" __config__ = [] @@ -23,11 +23,12 @@ class ZDF(Hoster): @staticmethod def video_valid(video): - return video.findtext("url").startswith("http") and video.findtext("url").endswith(".mp4") + 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"[^0-9]*([0-9]+)[^0-9]*", url).group(1)) + return int(re.search(r"[^0-9]*([0-9]{4,})[^0-9]*", url).group(1)) def process(self, pyfile): xml = fromstring(self.load(XML_API % self.get_id(pyfile.url))) |