aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/YoutubeDL.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-07-17 18:45:43 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-07-17 18:45:43 +0530
commitf5e438a976dcf8d7d263631ea0b0bf114b6182af (patch)
tree005a1955ef466268262623cd48839ef1b85d0baa /yt_dlp/YoutubeDL.py
parentd08e1e68758d5041afa79abd6a2d7dd1c45879d8 (diff)
downloadhypervideo-pre-f5e438a976dcf8d7d263631ea0b0bf114b6182af.tar.lz
hypervideo-pre-f5e438a976dcf8d7d263631ea0b0bf114b6182af.tar.xz
hypervideo-pre-f5e438a976dcf8d7d263631ea0b0bf114b6182af.zip
[compat] Let PyInstaller detect _legacy module
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r--yt_dlp/YoutubeDL.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index ffc5ff8c0..0f8a51dbe 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -24,7 +24,6 @@ import urllib.request
from string import ascii_letters
from .cache import Cache
-from .compat import HAS_LEGACY as compat_has_legacy
from .compat import compat_os_name, compat_shlex_quote
from .cookies import load_cookies
from .downloader import FFmpegFD, get_suitable_downloader, shorten_protocol_name
@@ -623,8 +622,6 @@ class YoutubeDL:
self.deprecation_warning(msg)
self.params['compat_opts'] = set(self.params.get('compat_opts', ()))
- if not compat_has_legacy:
- self.params['compat_opts'].add('no-compat-legacy')
if 'list-formats' in self.params['compat_opts']:
self.params['listformats_table'] = False