[YoutubeDL] Do not apply playlist info to videos when extract_flat is set (#4003)

This commit is contained in:
Philipp Hagemeister 2014-10-24 16:13:45 +02:00
parent 1ede5b2481
commit e82c1e9a6e

View file

@ -574,7 +574,6 @@ def process_ie_result(self, ie_result, download=True, extra_info={}):
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