1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-27 11:17:40 +00:00

Merge pull request #1161 from meyerd/master

Fix regex error when only subtitled video is available on arte.
This commit is contained in:
Jaime Marquínez Ferrándiz 2013-08-01 04:49:05 -07:00
commit 9bb6d2f21d

View file

@ -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)