aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/downloader/__init__.py
diff options
context:
space:
mode:
authorThe Hatsune Daishi <nao20010128@gmail.com>2021-05-02 23:13:37 +0900
committerGitHub <noreply@github.com>2021-05-02 19:43:37 +0530
commit0fa9a1e23625f0ba4516e5107ce447ac693e7ec1 (patch)
treea2f42cd0163b1f5f18222dadf508fb501afcbc91 /yt_dlp/downloader/__init__.py
parenteb55bad5a0c1af9388301ffbf17845ee53a41635 (diff)
downloadhypervideo-pre-0fa9a1e23625f0ba4516e5107ce447ac693e7ec1.tar.lz
hypervideo-pre-0fa9a1e23625f0ba4516e5107ce447ac693e7ec1.tar.xz
hypervideo-pre-0fa9a1e23625f0ba4516e5107ce447ac693e7ec1.zip
[whowatch] Add extractor #292
closes #223 Authored by: nao20010128nao Modified from: https://github.com/nao20010128nao/ytdl-patched/blob/9e4a0e061a558cdb05a618e27f47ca0ac56ece94/youtube_dl/extractor/whowatch.py
Diffstat (limited to 'yt_dlp/downloader/__init__.py')
-rw-r--r--yt_dlp/downloader/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/yt_dlp/downloader/__init__.py b/yt_dlp/downloader/__init__.py
index 510c7b601..c7ba91862 100644
--- a/yt_dlp/downloader/__init__.py
+++ b/yt_dlp/downloader/__init__.py
@@ -31,6 +31,7 @@ from .external import (
PROTOCOL_MAP = {
'rtmp': RtmpFD,
+ 'rtmp_ffmpeg': FFmpegFD,
'm3u8_native': HlsFD,
'm3u8': FFmpegFD,
'mms': RtspFD,
@@ -46,6 +47,7 @@ PROTOCOL_MAP = {
def shorten_protocol_name(proto, simplify=False):
short_protocol_names = {
'm3u8_native': 'm3u8_n',
+ 'rtmp_ffmpeg': 'rtmp_f',
'http_dash_segments': 'dash',
'niconico_dmc': 'dmc',
}
@@ -54,6 +56,7 @@ def shorten_protocol_name(proto, simplify=False):
'https': 'http',
'ftps': 'ftp',
'm3u8_native': 'm3u8',
+ 'rtmp_ffmpeg': 'rtmp',
'm3u8_frag_urls': 'm3u8',
'dash_frag_urls': 'dash',
})