From cca4828ac94e6d2e4e1918405d0fcbc8e6ac92d0 Mon Sep 17 00:00:00 2001 From: Filippo Valsorda Date: Sat, 14 Jul 2012 14:35:57 +0200 Subject: [PATCH] fixed a logic bug in post-processing --- youtube-dl | Bin 40554 -> 40554 bytes youtube_dl/PostProcessor.py | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube-dl b/youtube-dl index d89b5a9841b2ba633eebb0c6d3d9dfe381db2c4f..b3e0cd4221b302881fc5ad75746dd5fc9ad0c7fd 100755 GIT binary patch delta 2554 zcmVP2Jg7du_PP~|~XN4GcS^qIK%`bH!s)#byjXk2#l1Fe5dr@E+2 z?S!%IFWc;@+9b;ME647q(}kK&v)UApp>r$3`q$IxG|8p4Vr{Hjdwx^LX7`Iq-28Sr znayUjCAvMq^vmgVGGY;)#fn6hVyA>mQQ0@DLc!{EDL(8~NrVG#v6p{VWV+OL55aOeu}wmJS(A5E3!xnj$#dc4M}-dQb0&Y^jAJWh$(b@J1r@9De45>!$4V5vCMMCVTu>Bmw)y0=m@Ju}LHY2Wh8q zj;tS=LX}RCTt{}aR*PD>rY@oVLFP>>NmR8uXw%pehmwciW83S^M!|or)|sk;1f30) z5$XU3dGS`f;hma=t1_KV!a-h=wjhKtD!m@V%;dRw6jIEJ#x*diRu9^`S~_jYnFtXR zRu?*#h$X^&S7zqbCy*qr7qn#j;F#?ojw@CWi>b=Qc1wQSZey$RY%vJ;iiik+6WUph z1@s?5j8$$xaVCuAK$Cx;6^uK9RmPrzSJvw#Df_eo2_F6w4a4h#J<}fZuJPbKizf$k zHsF}`aDfI=q&lHxSsz8NfnbsXKL8t(#2{rYLccqXoo$!mJ(J}}@MoE-RhcM~=l0UE zZD1!%PzC|1iZ}sZm8T4O$ed+5SCw@8nP;jD^2Sp7LIZGj_NRY>DA|^fqc|sI$q;`F z4{bOgfQ9m^1t9s@<9I24GLHn_#Yj>ik3pK?%q_(Jq zLnJ`PtGYHMQ+|i-SGsr;HFY1Z5u(V?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M3LpgW(33dJ1ndNppWQ1vwZsJpmE4 zGwB>EYhsj#!h@+k(|abhY--O`eK9Oqw4IV3W(xJN2_4jHfw2Q>;BRZlg(ouZe{rQ0 zDYlN7=UQ-@8zTj$xhuXD*!?TomoB(tBYCja=rZfwV_0r)DD^{VLpcuvQ-2<9XMN^Z zG$hZ}+-)hvj<|V#i8p^VEBNsmG1ZnQNH}nc>)xd~B#iBk4gqgIe0cxiwr%zezesTp zREf7wHBTk8VflTIU`2}16jaco)K`1_eAWz1zBZi{_~*&s@X^n4XrQCYU22wds|005kmC!Hz-f->Th K{+t|>aGm-OH09?2 diff --git a/youtube_dl/PostProcessor.py b/youtube_dl/PostProcessor.py index b4262f9e4..527dc3a3d 100644 --- a/youtube_dl/PostProcessor.py +++ b/youtube_dl/PostProcessor.py @@ -162,7 +162,7 @@ class FFmpegExtractAudioPP(PostProcessor): prefix, sep, ext = path.rpartition(u'.') # not os.path.splitext, since the latter does not work on unicode in all setups new_path = prefix + sep + extension - self._downloader.to_screen(u'[' + self._exes['avconv'] and 'avconv' or 'ffmpeg' + '] Destination: ' + new_path) + self._downloader.to_screen(u'[' + (self._exes['avconv'] and 'avconv' or 'ffmpeg') + '] Destination: ' + new_path) try: self.run_ffmpeg(path, new_path, acodec, more_opts) except: @@ -170,7 +170,7 @@ class FFmpegExtractAudioPP(PostProcessor): if isinstance(e, AudioConversionError): self._downloader.to_stderr(u'ERROR: audio conversion failed: ' + e.message) else: - self._downloader.to_stderr(u'ERROR: error running ' + self._exes['avconv'] and 'avconv' or 'ffmpeg') + self._downloader.to_stderr(u'ERROR: error running ' + (self._exes['avconv'] and 'avconv' or 'ffmpeg')) return None # Try to update the date time for extracted audio file. -- 2.39.5