From 44af9751a7b27411682917bd9132280176dc1fef Mon Sep 17 00:00:00 2001 From: pukkandan Date: Thu, 14 Jan 2021 14:04:33 +0530 Subject: [PATCH] Print full error in verbose for sponskrub --- youtube_dlc/postprocessor/sponskrub.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/youtube_dlc/postprocessor/sponskrub.py b/youtube_dlc/postprocessor/sponskrub.py index 9215913bca..a8a6e06911 100644 --- a/youtube_dlc/postprocessor/sponskrub.py +++ b/youtube_dlc/postprocessor/sponskrub.py @@ -80,6 +80,8 @@ class SponSkrubPP(PostProcessor): self.to_screen('No segments in the SponsorBlock database') else: stderr = stderr.decode('utf-8', 'replace') - msg = stderr.strip().split('\n')[-1] + msg = stderr.strip() + if not self.get_param('verbose', False): + msg = msg.split('\n')[-1] raise PostProcessingError(msg if msg else 'sponskrub failed with error code %s!' % p.returncode) return [], information