Merge pull request #1161 from meyerd/master

Fix regex error when only subtitled video is available on arte.
pull/2/head
Jaime Marquínez Ferrándiz 12 years ago
commit 9bb6d2f21d

@ -98,7 +98,7 @@ class ArteTvIE(InfoExtractor):
l = 'F' l = 'F'
elif lang == 'de': elif lang == 'de':
l = 'A' 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) return any(re.match(r, f['versionCode']) for r in regexes)
# Some formats may not be in the same language as the url # Some formats may not be in the same language as the url
formats = filter(_match_lang, formats) formats = filter(_match_lang, formats)

Loading…
Cancel
Save