Fix "invalid escape sequences" error on Python 3.6

This commit is contained in:
Yen Chi Hsuan 2017-01-02 20:08:07 +08:00
parent 24d8a75982
commit ec85ded83c
No known key found for this signature in database
GPG key ID: 7F902A182457CA23
283 changed files with 538 additions and 538 deletions

View file

@ -47,7 +47,7 @@ class TEDIE(InfoExtractor):
'id': 'tSVI8ta_P4w',
'ext': 'mp4',
'title': 'Vishal Sikka: The beauty and power of algorithms',
'thumbnail': 're:^https?://.+\.jpg',
'thumbnail': r're:^https?://.+\.jpg',
'description': 'md5:6261fdfe3e02f4f579cbbfc00aff73f4',
'upload_date': '20140122',
'uploader_id': 'TEDInstitute',
@ -189,7 +189,7 @@ class TEDIE(InfoExtractor):
'format_id': '%s-%sk' % (format_id, bitrate),
'tbr': bitrate,
})
if re.search('\d+k', h264_url):
if re.search(r'\d+k', h264_url):
http_url = h264_url
elif format_id == 'rtmp':
streamer = talk_info.get('streamer')