1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-04 16:41:19 +00:00

[pbs] No need to escape colon

This commit is contained in:
Sergey M․ 2015-07-22 23:49:55 +06:00
parent ce1bafdce9
commit c7620992d2

View file

@ -251,7 +251,7 @@ class PBSIE(InfoExtractor):
# Try turning it to 'program - title' naming scheme if possible # Try turning it to 'program - title' naming scheme if possible
alt_title = info.get('program', {}).get('title') alt_title = info.get('program', {}).get('title')
if alt_title: if alt_title:
info['title'] = alt_title + ' - ' + re.sub(r'^' + alt_title + '[\s\-\:]+', '', info['title']) info['title'] = alt_title + ' - ' + re.sub(r'^' + alt_title + '[\s\-:]+', '', info['title'])
return { return {
'id': video_id, 'id': video_id,