projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abc97b5
)
[youtube] Allow empty attribute values in description regex
author
Sergey M․
<dstftw@gmail.com>
Fri, 6 May 2016 16:11:18 +0000
(22:11 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 6 May 2016 16:11:18 +0000
(22:11 +0600)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index b7c3cb63fc44d73d429f70392e0bd2cdf5bbd66f..f3f102c30f5a0a5852a292529ea52b70051260f7 100644
(file)
--- a/
youtube_dl/extractor/youtube.py
+++ b/
youtube_dl/extractor/youtube.py
@@
-1326,9
+1326,9
@@
class YoutubeIE(YoutubeBaseInfoExtractor):
if video_description:
video_description = re.sub(r'''(?x)
<a\s+
- (?:[a-zA-Z-]+="[^"]
+
"\s+)*?
+ (?:[a-zA-Z-]+="[^"]
*
"\s+)*?
(?:title|href)="([^"]+)"\s+
- (?:[a-zA-Z-]+="[^"]
+
"\s+)*?
+ (?:[a-zA-Z-]+="[^"]
*
"\s+)*?
class="(?:yt-uix-redirect-link|yt-uix-sessionlink[^"]*)"[^>]*>
[^<]+\.{3}\s*
</a>