[YoutubeDL] Do not apply playlist info to videos when extract_flat is set (#4003)
authorPhilipp Hagemeister <phihag@phihag.de>
Fri, 24 Oct 2014 14:13:45 +0000 (16:13 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Fri, 24 Oct 2014 14:13:45 +0000 (16:13 +0200)
youtube_dl/YoutubeDL.py

index 623f9d6fe1cdf98e5a192168ecdef36ab1c4c136..6aa1fd105e78a87e06ece2a62cc80532525ece71 100755 (executable)
@@ -574,7 +574,6 @@ class YoutubeDL(object):
             extract_flat = self.params.get('extract_flat', False)
             if ((extract_flat == 'in_playlist' and 'playlist' in extra_info) or
                     extract_flat is True):
-                self.add_extra_info(ie_result, extra_info)
                 if self.params.get('forcejson', False):
                     self.to_stdout(json.dumps(ie_result))
                 return ie_result