1
0
Fork 0
mirror of https://github.com/blackjack4494/yt-dlc.git synced 2024-12-22 15:57:23 +00:00

[youtube] Fix relative URLs in description

This commit is contained in:
Sergey M․ 2017-10-14 20:26:24 +07:00
parent c9bd503e7d
commit 685e87b61f
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -1630,7 +1630,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
class="[^"]*"[^>]*>
[^<]+\.{3}\s*
</a>
''', r'\1', video_description)
''', lambda m: compat_urlparse.urljoin(url, m.group(1)), video_description)
video_description = clean_html(video_description)
else:
fd_mobj = re.search(r'<meta name="description" content="([^"]+)"', video_webpage)