aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPurdea Andrei <andrei@purdea.ro>2015-07-28 18:29:13 +0300
committerPurdea Andrei <andrei@purdea.ro>2015-07-28 18:29:13 +0300
commita6f774e9015995393a086273df8db1d7b0c098c4 (patch)
treeaf1b530ea76acdb1c0b7516514198fef2b40bdf6 /youtube_dl
parentf171bc8b59ecf4560dd4076be56570a4f090d519 (diff)
downloadyoutube-dl-a6f774e9015995393a086273df8db1d7b0c098c4.tar.xz
[youtube]: tags key in info jason is now a list
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/youtube.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 15e327ec8..c0fafbfd5 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -1072,9 +1072,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
else:
video_categories = None
- m = re.findall(r'''<meta(?:\s+[a-zA-Z0-9:._-]+(?:=[a-zA-Z0-9:._-]+|="[^"]+"|='[^']+'))*?\s+property=['"]?og:video:tag['"]?(?:\s+[a-zA-Z0-9:._-]+(?:=[a-zA-Z0-9:._-]+|="[^"]+"|='[^']+'))*?\s+content=['"]?([^>'"]+?)['"]?\s*>'''
+ video_tags = re.findall(r'''<meta(?:\s+[a-zA-Z0-9:._-]+(?:=[a-zA-Z0-9:._-]+|="[^"]+"|='[^']+'))*?\s+property=['"]?og:video:tag['"]?(?:\s+[a-zA-Z0-9:._-]+(?:=[a-zA-Z0-9:._-]+|="[^"]+"|='[^']+'))*?\s+content=['"]?([^>'"]+?)['"]?\s*>'''
, video_webpage, re.DOTALL | re.IGNORECASE);
- video_tags = ", ".join(m)
# description
video_description = get_element_by_id("eow-description", video_webpage)
if video_description: