use older login method(closes #11572)
authorRemita Amine <remitamine@gmail.com>
Wed, 8 Nov 2017 19:30:05 +0000 (20:30 +0100)
committerRemita Amine <remitamine@gmail.com>
Wed, 8 Nov 2017 19:30:05 +0000 (20:30 +0100)
youtube_dl/extractor/crunchyroll.py

index 8bdaf0c2c5af7aa1a562033487a16867c3304f19..18ef3da1053ed14c587be165239f409dd15bc602 100644 (file)
@@ -43,6 +43,17 @@ class CrunchyrollBaseIE(InfoExtractor):
         if username is None:
             return
 
+        self._download_webpage(
+            'https://www.crunchyroll.com/?a=formhandler',
+            None, 'Logging in', 'Wrong login info',
+            data=urlencode_postdata({
+                'formname': 'RpcApiUser_Login',
+                'next_url': 'https://www.crunchyroll.com/acct/membership',
+                'name': username,
+                'password': password,
+            }))
+
+        '''
         login_page = self._download_webpage(
             self._LOGIN_URL, None, 'Downloading login page')
 
@@ -86,6 +97,7 @@ class CrunchyrollBaseIE(InfoExtractor):
             raise ExtractorError('Unable to login: %s' % error, expected=True)
 
         raise ExtractorError('Unable to log in')
+        '''
 
     def _real_initialize(self):
         self._login()