projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[youtube] Allow empty attribute values in description regex
[youtube-dl]
/
youtube_dl
/
extractor
/
youtube.py
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+
if video_description:
video_description = re.sub(r'''(?x)
<a\s+
- (?:[a-zA-Z-]+="[^"]
+
"\s+)*?
+ (?:[a-zA-Z-]+="[^"]
*
"\s+)*?
(?:title|href)="([^"]+)"\s+
(?:title|href)="([^"]+)"\s+
- (?:[a-zA-Z-]+="[^"]
+
"\s+)*?
+ (?:[a-zA-Z-]+="[^"]
*
"\s+)*?
class="(?:yt-uix-redirect-link|yt-uix-sessionlink[^"]*)"[^>]*>
[^<]+\.{3}\s*
</a>
class="(?:yt-uix-redirect-link|yt-uix-sessionlink[^"]*)"[^>]*>
[^<]+\.{3}\s*
</a>