]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/pluralsight.py
[ie/crunchyroll] Fix stream extraction (#10005)
[yt-dlp.git] / yt_dlp / extractor / pluralsight.py
index 801057ee10ca18af0d2ba33eb913928e281dc377..809b65608f2b1bc5c4c6b54a673913d446695fe9 100644 (file)
@@ -1,5 +1,3 @@
-from __future__ import unicode_literals
-
 import collections
 import json
 import os
@@ -162,14 +160,7 @@ class PluralsightIE(PluralsightBaseIE):
   }
 }'''
 
-    def _real_initialize(self):
-        self._login()
-
-    def _login(self):
-        username, password = self._get_login_info()
-        if username is None:
-            return
-
+    def _perform_login(self, username, password):
         login_page = self._download_webpage(
             self._LOGIN_URL, None, 'Downloading login page')
 
@@ -419,8 +410,6 @@ def guess_allowed_qualities():
                     })
                     formats.append(clip_f)
 
-        self._sort_formats(formats)
-
         duration = int_or_none(
             clip.get('duration')) or parse_duration(clip.get('formattedDuration'))