]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[youtube]: tags key in info jason is now a list
authorPurdea Andrei <andrei@purdea.ro>
Tue, 28 Jul 2015 15:29:13 +0000 (18:29 +0300)
committerPurdea Andrei <andrei@purdea.ro>
Tue, 28 Jul 2015 15:29:13 +0000 (18:29 +0300)
youtube_dl/extractor/youtube.py

index 15e327ec8b5843fcd89e7943e4b6991dbcb4ed88..c0fafbfd5c3b924d8cc6a15d956c6ca846ce94bc 100644 (file)
@@ -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: