From: Dominik Date: Thu, 1 Aug 2013 09:48:17 +0000 (+0200) Subject: Fix regex error when only subtitled video is available on arte. X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=e3f4593e76210a5afe6f52318d3f240318ededbd;p=youtube-dl Fix regex error when only subtitled video is available on arte. --- diff --git a/youtube_dl/extractor/arte.py b/youtube_dl/extractor/arte.py index 993e30f7a..18d591658 100644 --- a/youtube_dl/extractor/arte.py +++ b/youtube_dl/extractor/arte.py @@ -98,7 +98,7 @@ class ArteTvIE(InfoExtractor): l = 'F' elif lang == 'de': l = 'A' - regexes = [r'VO?%s' % l, r'V%s-ST.' % l] + regexes = [r'VO?%s' % l, r'VO?.-ST%s' % l] return any(re.match(r, f['versionCode']) for r in regexes) # Some formats may not be in the same language as the url formats = filter(_match_lang, formats)