youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 10d33b347391ed0af453a88d2860a8ad7d8d18c7
parent ac25992bc74dec638cb33e8da088c325a03036a5
Author: Yen Chi Hsuan <yan12125@gmail.com>
Date:   Wed, 13 Jan 2016 16:24:48 +0800

[YoutubeDL] Introduce CSS3 like string operators

Diffstat:
Myoutube_dl/YoutubeDL.py | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py @@ -898,6 +898,9 @@ class YoutubeDL(object): STR_OPERATORS = { '=': operator.eq, '!=': operator.ne, + '^=': lambda attr, value: attr.startswith(value), + '$=': lambda attr, value: attr.endswith(value), + '*=': lambda attr, value: value in attr, } str_operator_rex = re.compile(r'''(?x) \s*(?P<key>ext|acodec|vcodec|container|protocol)