Преглед на файлове

[YoutubeDL] Skip postprocessing and archive report when outputting to stdout (Closes #8729)

Sergey M․ преди 9 години
родител
ревизия
e38cafe986
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      youtube_dl/YoutubeDL.py

+ 1 - 1
youtube_dl/YoutubeDL.py

@@ -1631,7 +1631,7 @@ class YoutubeDL(object):
                 self.report_error('content too short (expected %s bytes and served %s)' % (err.expected, err.downloaded))
                 self.report_error('content too short (expected %s bytes and served %s)' % (err.expected, err.downloaded))
                 return
                 return
 
 
-            if success:
+            if success and filename != '-':
                 # Fixup content
                 # Fixup content
                 fixup_policy = self.params.get('fixup')
                 fixup_policy = self.params.get('fixup')
                 if fixup_policy is None:
                 if fixup_policy is None: