浏览代码

[mplayer] Rename to RTSP

Sergey M․ 10 年之前
父节点
当前提交
a5ebf77d87
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 3 3
      youtube_dl/downloader/__init__.py
  2. 1 1
      youtube_dl/downloader/rtsp.py

+ 3 - 3
youtube_dl/downloader/__init__.py

@@ -6,7 +6,7 @@ from .f4m import F4mFD
 from .hls import HlsFD
 from .hls import NativeHlsFD
 from .http import HttpFD
-from .mplayer import MplayerFD
+from .rtsp import RtspFD
 from .rtmp import RtmpFD
 
 from ..utils import (
@@ -17,8 +17,8 @@ PROTOCOL_MAP = {
     'rtmp': RtmpFD,
     'm3u8_native': NativeHlsFD,
     'm3u8': HlsFD,
-    'mms': MplayerFD,
-    'rtsp': MplayerFD,
+    'mms': RtspFD,
+    'rtsp': RtspFD,
     'f4m': F4mFD,
 }
 

+ 1 - 1
youtube_dl/downloader/mplayer.py → youtube_dl/downloader/rtsp.py

@@ -10,7 +10,7 @@ from ..utils import (
 )
 
 
-class MplayerFD(FileDownloader):
+class RtspFD(FileDownloader):
     def real_download(self, filename, info_dict):
         url = info_dict['url']
         self.report_destination(filename)