summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/ZDF.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/ZDF.py')
-rw-r--r--module/plugins/hoster/ZDF.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/module/plugins/hoster/ZDF.py b/module/plugins/hoster/ZDF.py
index ea45f4fd8..9940fd078 100644
--- a/module/plugins/hoster/ZDF.py
+++ b/module/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)