Browse Source

[vimeo] Proper warning when password is required (Fixes #2053)

In player. URLs, the password warning is different.
Philipp Hagemeister 11 years ago
parent
commit
559e370f44
1 changed files with 4 additions and 0 deletions
  1. 4 0
      youtube_dl/extractor/vimeo.py

+ 4 - 0
youtube_dl/extractor/vimeo.py

@@ -179,6 +179,10 @@ class VimeoIE(InfoExtractor):
             else:
                 raise ExtractorError(u'Unable to extract info section',
                                      cause=e)
+        else:
+            if config.get('view') == 4:
+                self._verify_video_password(url, video_id, webpage)
+                return self._real_extract(url)
 
         # Extract title
         video_title = config["video"]["title"]