YoutubeDL: only set the ‘formats’ field of the info_dict if it was already set before
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Mon, 23 Dec 2013 09:23:13 +0000 (10:23 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Mon, 23 Dec 2013 09:23:13 +0000 (10:23 +0100)
commitb3d9ef88ec55335db93601f4b2ec9ad30eca93ec
treea938d7c7521788ca22d8c65d51200d0c43299c61
parent8958b6916cdf8b30b347972b452136cb9fdab679
YoutubeDL: only set the ‘formats’ field of the info_dict if it was already set before

It caused a circular reference error, when trying to dump it to json (for example with the test video for myvideo.de or any other video without formats)
youtube_dl/YoutubeDL.py