diff options
| author | 2013-07-22 20:50:34 +0200 | |
|---|---|---|
| committer | 2013-07-22 20:50:34 +0200 | |
| commit | 2edeee0532ec6d6b4b26fd045a5971f67ca455da (patch) | |
| tree | 8d656afc9c18f7dba7c05d6635f898fdf58d66d6 /module/plugins/hoster/ARD.py | |
| parent | Fixed PEP 8 violations in Crypters (diff) | |
| download | pyload-2edeee0532ec6d6b4b26fd045a5971f67ca455da.tar.xz | |
Fixed PEP 8 violations in Hosters
Diffstat (limited to 'module/plugins/hoster/ARD.py')
| -rw-r--r-- | module/plugins/hoster/ARD.py | 9 | 
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] | 
