about summary refs log tree commit diff
diff options
context:
space:
mode:
authordirkf <fieldhouse@gmx.net>2023-07-07 18:41:32 +0100
committerdirkf <fieldhouse@gmx.net>2023-07-18 10:50:46 +0100
commitb6dff4073d469cceadb099c00ccbf3bd6fc515a6 (patch)
tree4ed63383e6a66a5c9b4ef7a744f52a8fc75fc344
parentf24bc9272e9b74efc4c4af87c862f5f78921d424 (diff)
downloadyoutube-dl-b6dff4073d469cceadb099c00ccbf3bd6fc515a6.tar.gz
youtube-dl-b6dff4073d469cceadb099c00ccbf3bd6fc515a6.tar.xz
youtube-dl-b6dff4073d469cceadb099c00ccbf3bd6fc515a6.zip
[core] Revert version display from b8a86dc
-rwxr-xr-xyoutube_dl/YoutubeDL.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index 068029d3e..4e7fd1063 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -2378,10 +2378,12 @@ class YoutubeDL(object):
                 self.get_encoding()))
         write_string(encoding_str, encoding=None)
 
-        self._write_string('[debug] youtube-dl version ' + __version__ + (' (single file build)\n' if ytdl_is_updateable() else '\n'))
+        writeln_debug = lambda *s: self._write_string('[debug] %s\n' % (''.join(s), ))
+        writeln_debug('youtube-dl version ', __version__)
         if _LAZY_LOADER:
-            self._write_string('[debug] Lazy loading extractors enabled\n')
-        writeln_debug = lambda *s: self._write_string('[debug] %s\n' % (''.join(s), ))  # moved down for easier merge
+            writeln_debug('Lazy loading extractors enabled')
+        if ytdl_is_updateable():
+            writeln_debug('Single file build')
         try:
             sp = subprocess.Popen(
                 ['git', 'rev-parse', '--short', 'HEAD'],