[YoutubeDL] format spec: Do not fail when a filter gives an empty result
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 4 Jul 2015 19:41:09 +0000 (21:41 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 4 Jul 2015 19:41:09 +0000 (21:41 +0200)
commitbb8e55366289e0c129ef85abb8c1ac1cbae86a66
tree5db327bb57b54afe8fc8ac74cecde9901610102b
parentf5f4a27a964b41646303921104f4d6d6fd2098e4
[YoutubeDL] format spec: Do not fail when a filter gives an empty result

For example with 'best[height<40]' we ended getting a 'IndexError: list index out of range'.
test/test_YoutubeDL.py
youtube_dl/YoutubeDL.py