[vimeo] one token overlooked
authorpulpe <Pulpan3@gmail.com>
Wed, 22 Apr 2015 21:55:19 +0000 (23:55 +0200)
committerpulpe <Pulpan3@gmail.com>
Wed, 22 Apr 2015 21:55:19 +0000 (23:55 +0200)
youtube_dl/extractor/vimeo.py

index 55c1574bb8374030ee0cd1af7eaa5a5746bb28bc..9027f9dd6f87b9ff48e6d073675c014d607b0bda 100644 (file)
@@ -439,7 +439,7 @@ class VimeoChannelIE(InfoExtractor):
             name="([^"]+)"\s+
             value="([^"]*)"
             ''', login_form))
-        token = self._search_regex(r'xsrft = \'(.*?)\'', webpage, 'login token')
+        token = self._search_regex(r'xsrft":"(.*?)"', webpage, 'login token')
         fields['token'] = token
         fields['password'] = password
         post = urlencode_postdata(fields)