summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster/ZDF.py
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-07-22 20:50:34 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-07-22 21:20:06 +0200
commitaaaf5a4cddec894aacd7400c59a9f2f5e710362f (patch)
tree9d9e89aff86598b3ffcc86117abd554b193e28b5 /pyload/plugins/hoster/ZDF.py
parentimplemented media type filter (diff)
downloadpyload-aaaf5a4cddec894aacd7400c59a9f2f5e710362f.tar.xz
Fixed PEP 8 violations in Hosters
(cherry picked from commit 2edeee0532ec6d6b4b26fd045a5971f67ca455da) Conflicts: pyload/plugins/hoster/BasePlugin.py pyload/plugins/hoster/MultishareCz.py pyload/plugins/hoster/NetloadIn.py pyload/plugins/hoster/PremiumizeMe.py pyload/plugins/hoster/RapidshareCom.py
Diffstat (limited to 'pyload/plugins/hoster/ZDF.py')
-rw-r--r--pyload/plugins/hoster/ZDF.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/pyload/plugins/hoster/ZDF.py b/pyload/plugins/hoster/ZDF.py
index ea45f4fd8..9940fd078 100644
--- a/pyload/plugins/hoster/ZDF.py
+++ b/pyload/plugins/hoster/ZDF.py
@@ -1,4 +1,3 @@
-
import re
from xml.etree.ElementTree import fromstring
@@ -6,6 +5,7 @@ from module.plugins.Hoster import Hoster
XML_API = "http://www.zdf.de/ZDFmediathek/xmlservice/web/beitragsDetails?id=%i"
+
class ZDF(Hoster):
# Based on zdfm by Roland Beermann
# http://github.com/enkore/zdfm/
@@ -23,7 +23,7 @@ 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")
@staticmethod
def get_id(url):
@@ -40,7 +40,8 @@ class ZDF(Hoster):
title = video.findtext("information/title")
pyfile.name = title
-
- target_url = sorted((v for v in video.iter("formitaet") if self.video_valid(v)), key=self.video_key)[-1].findtext("url")
+
+ target_url = sorted((v for v in video.iter("formitaet") if self.video_valid(v)),
+ key=self.video_key)[-1].findtext("url")
self.download(target_url)