summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/ARD.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/ARD.py')
-rw-r--r--module/plugins/hoster/ARD.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/module/plugins/hoster/ARD.py b/module/plugins/hoster/ARD.py
index cda783091..4404994b3 100644
--- a/module/plugins/hoster/ARD.py
+++ b/module/plugins/hoster/ARD.py
@@ -1,4 +1,3 @@
-
import subprocess
import re
import os.path
@@ -10,6 +9,7 @@ from module.plugins.Hoster import Hoster
# Requires rtmpdump
# by Roland Beermann
+
class RTMP:
# TODO: Port to some RTMP-library like rtmpy or similar
# TODO?: Integrate properly into the API of pyLoad
@@ -37,6 +37,7 @@ class RTMP:
return subprocess.check_call(args)
+
class ARD(Hoster):
__name__ = "ARD Mediathek"
__version__ = "0.11"
@@ -46,8 +47,10 @@ class ARD(Hoster):
def process(self, pyfile):
site = self.load(pyfile.url)
- avail_videos = re.findall(r"""mediaCollection.addMediaStream\(0, ([0-9]*), "([^\"]*)", "([^\"]*)", "[^\"]*"\);""", site)
- avail_videos.sort(key=lambda videodesc: int(videodesc[0]), reverse=True) # The higher the number, the better the quality
+ avail_videos = re.findall(
+ r'mediaCollection.addMediaStream\(0, ([0-9]*), "([^\"]*)", "([^\"]*)", "[^\"]*"\);', site)
+ avail_videos.sort(key=lambda videodesc: int(videodesc[0]),
+ reverse=True) # The higher the number, the better the quality
quality, url, playpath = avail_videos[0]