]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
Support youtube videos of google+ users
authorPhilipp Hagemeister <phihag@phihag.de>
Wed, 2 Jan 2013 18:12:44 +0000 (19:12 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 2 Jan 2013 18:12:44 +0000 (19:12 +0100)
youtube_dl/InfoExtractors.py

index 02e38a5861372abab9c8bfa96e889bf39601b073..7bea26142fc7a7f09c28037a5635de4a70cb46ce 100755 (executable)
@@ -412,7 +412,7 @@ class YoutubeIE(InfoExtractor):
 
         # uploader_id
         video_uploader_id = None
-        mobj = re.search(r'<link itemprop="url" href="http://www.youtube.com/user/([^"]+)">', video_webpage)
+        mobj = re.search(r'<link itemprop="url" href="http://www.youtube.com/(?:user|channel)/([^"]+)">', video_webpage)
         if mobj is not None:
             video_uploader_id = mobj.group(1)
         else: