]> code.delx.au - webdl/blobdiff - common.py
Added license
[webdl] / common.py
index 470769042263f0c29cb54907bf595d799a3daca0..3370b36e82f86867e0a4eb2b4fb7316b092cd2db 100644 (file)
--- a/common.py
+++ b/common.py
@@ -57,9 +57,6 @@ def load_root_node():
     import sbs
     sbs.fill_nodes(root_node)
 
-###    import plus7
-###    plus7.fill_nodes(root_node)
-
     import brightcove
     brightcove.fill_nodes(root_node)
 
@@ -268,24 +265,6 @@ def download_hls(filename, video_url):
     else:
         return False
 
-def download_rtmp(filename, vbase, vpath, hash_url=None):
-    filename = sanify_filename(filename)
-    print "Downloading: %s" % filename
-    if vpath.endswith(".flv"):
-        vpath = vpath[:-4]
-    cmd = [
-        "rtmpdump",
-        "-o", filename,
-        "-r", vbase,
-        "-y", vpath,
-    ]
-    if hash_url is not None:
-        cmd += ["--swfVfy", hash_url]
-    if exec_subprocess(cmd):
-        return convert_to_mp4(filename)
-    else:
-        return False
-
 def natural_sort(l, key=None):
     ignore_list = ["a", "the"]
     def key_func(k):