aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp')
-rw-r--r--yt_dlp/YoutubeDL.py19
-rw-r--r--yt_dlp/downloader/youtube_live_chat.py2
-rw-r--r--yt_dlp/utils.py2
3 files changed, 7 insertions, 16 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index 014b9db0c..d6b284529 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -518,17 +518,6 @@ class YoutubeDL(object):
'storyboards': {'mhtml'},
}
- params = None
- _ies = {}
- _pps = {k: [] for k in POSTPROCESS_WHEN}
- _printed_messages = set()
- _first_webpage_request = True
- _download_retcode = None
- _num_downloads = None
- _playlist_level = 0
- _playlist_urls = set()
- _screen_file = None
-
def __init__(self, params=None, auto_init=True):
"""Create a FileDownloader object with the given options.
@param auto_init Whether to load the default extractors and print header (if verbose).
@@ -536,6 +525,7 @@ class YoutubeDL(object):
"""
if params is None:
params = {}
+ self.params = params
self._ies = {}
self._ies_instances = {}
self._pps = {k: [] for k in POSTPROCESS_WHEN}
@@ -547,7 +537,8 @@ class YoutubeDL(object):
self._download_retcode = 0
self._num_downloads = 0
self._num_videos = 0
- self.params = params
+ self._playlist_level = 0
+ self._playlist_urls = set()
self.cache = Cache(self)
windows_enable_vt_mode()
@@ -840,12 +831,12 @@ class YoutubeDL(object):
def save_console_title(self):
if not self.params.get('consoletitle') or self.params.get('simulate'):
return
- self._send_console_code('\033[22;0t') # Save the title on stack
+ self._send_console_code('\033[22;0t') # Save the title on stack
def restore_console_title(self):
if not self.params.get('consoletitle') or self.params.get('simulate'):
return
- self._send_console_code('\033[23;0t') # Restore the title from stack
+ self._send_console_code('\033[23;0t') # Restore the title from stack
def __enter__(self):
self.save_console_title()
diff --git a/yt_dlp/downloader/youtube_live_chat.py b/yt_dlp/downloader/youtube_live_chat.py
index fbf1c3d5a..b28d1ec17 100644
--- a/yt_dlp/downloader/youtube_live_chat.py
+++ b/yt_dlp/downloader/youtube_live_chat.py
@@ -22,7 +22,7 @@ class YoutubeLiveChatFD(FragmentFD):
def real_download(self, filename, info_dict):
video_id = info_dict['video_id']
self.to_screen('[%s] Downloading live chat' % self.FD_NAME)
- if not self.params.get('skip_download'):
+ if not self.params.get('skip_download') and info_dict['protocol'] == 'youtube_live_chat':
self.report_warning('Live chat download runs until the livestream ends. '
'If you wish to download the video simultaneously, run a separate yt-dlp instance')
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py
index 38aeb6918..c9b57c2f0 100644
--- a/yt_dlp/utils.py
+++ b/yt_dlp/utils.py
@@ -1029,7 +1029,7 @@ def make_HTTPS_handler(params, **kwargs):
def bug_reports_message(before=';'):
msg = ('please report this issue on https://github.com/yt-dlp/yt-dlp , '
- 'filling out the "Broken site" issue template properly. '
+ 'filling out the appropriate issue template. '
'Confirm you are on the latest version using yt-dlp -U')
before = before.rstrip()