]> git.bitcoin.ninja Git - youtube-dl/commitdiff
Merge pull request #1324 from whydoubt/fix_gplus
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Tue, 27 Aug 2013 20:36:39 +0000 (13:36 -0700)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Tue, 27 Aug 2013 20:36:39 +0000 (13:36 -0700)
Initial slash in Google+ photos link was removed

youtube_dl/extractor/googleplus.py

index 9f7fc19a4e663f422b41a4fff620152bbe0b6e64..f1cd889834dc712d8b3c38478f85e30f2f92e44f 100644 (file)
@@ -57,8 +57,8 @@ class GooglePlusIE(InfoExtractor):
             webpage, 'title', default=u'NA')
 
         # Step 2, Simulate clicking the image box to launch video
-        DOMAIN = 'https://plus.google.com'
-        video_page = self._search_regex(r'<a href="((?:%s)?/photos/.*?)"' % re.escape(DOMAIN),
+        DOMAIN = 'https://plus.google.com/'
+        video_page = self._search_regex(r'<a href="((?:%s)?photos/.*?)"' % re.escape(DOMAIN),
             webpage, u'video page URL')
         if not video_page.startswith(DOMAIN):
             video_page = DOMAIN + video_page