[YoutubeDL] rework how the format spec is processed
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sun, 28 Jun 2015 20:08:29 +0000 (22:08 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sun, 28 Jun 2015 20:31:35 +0000 (22:31 +0200)
commit67134eaba1a56cec4117000acb2fc9284c9cdd9a
tree0ea043d651dd54fcc2dc7d1114e00242073ba469
parentac0474f89d3e6f8c8c1fb3223a16a18a2fd02bcb
[YoutubeDL] rework how the format spec is processed

The spec string is processed using 'tokenize.tokenize' to split it in words and operators, the filters are still processed using regular expressions.
This should make easier to allow grouping operators with parens.
test/test_YoutubeDL.py
youtube_dl/YoutubeDL.py
youtube_dl/compat.py