diff options
author | m42e <iceboy@iceboy.de> | 2014-03-19 15:04:39 +0100 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2014-04-21 17:06:23 +0200 |
commit | 78d4e67e2f851a2350205def4519e64d6fd2e725 (patch) | |
tree | 8c2a4a8111f5cd65501045fdaca221eb8a75e370 | |
parent | Rapidgator: Pattern updated (diff) | |
download | pyload-78d4e67e2f851a2350205def4519e64d6fd2e725.tar.xz |
ZDF: ignore series id, use progressive only, not hbbtv
Merges #544
(cherry picked from commit d1a4bc65f6d560b1a851c3359f6511a1e96025e3)
-rw-r--r-- | pyload/plugins/hoster/ZDF.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pyload/plugins/hoster/ZDF.py b/pyload/plugins/hoster/ZDF.py index 9940fd078..e45717186 100644 --- a/pyload/plugins/hoster/ZDF.py +++ b/pyload/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))) |