projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce1bafd
)
[pbs] No need to escape colon
author
Sergey M․
<dstftw@gmail.com>
Wed, 22 Jul 2015 17:49:55 +0000
(23:49 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 22 Jul 2015 17:49:55 +0000
(23:49 +0600)
youtube_dl/extractor/pbs.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/pbs.py
b/youtube_dl/extractor/pbs.py
index ba6527b80fd3c147df37ab55bec28a5d315b5cce..a53479aad762d2fbe8095867a625df996bbf1473 100644
(file)
--- a/
youtube_dl/extractor/pbs.py
+++ b/
youtube_dl/extractor/pbs.py
@@
-251,7
+251,7
@@
class PBSIE(InfoExtractor):
# Try turning it to 'program - title' naming scheme if possible
alt_title = info.get('program', {}).get('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 {
'id': video_id,