]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/tennistv.py
[core] Warn if lack of ffmpeg alters format selection (#9805)
[yt-dlp.git] / yt_dlp / extractor / tennistv.py
index 47cb0965e0c9236f65a31a7c6e40aa945e08a7ed..c1b4a33124aea0540a3dd149e070fce52f59d5e1 100644 (file)
@@ -86,7 +86,7 @@ def _perform_login(self, username, password):
             })
 
         self.get_token(None, {
-            'code': urllib.parse.parse_qs(handle.geturl())['code'][-1],
+            'code': urllib.parse.parse_qs(handle.url)['code'][-1],
             'grant_type': 'authorization_code',
             'client_id': 'tennis-tv-web',
             'redirect_uri': 'https://www.tennistv.com/resources/v1.1.10/html/silent-check-sso.html'
@@ -138,8 +138,6 @@ def _real_extract(self, url):
         formats, subtitles = self._extract_m3u8_formats_and_subtitles(
             self._FORMAT_URL.format(partner=self._PARTNER_ID, entry=entryid, session=k_session), video_id)
 
-        self._sort_formats(formats)
-
         return {
             'id': video_id,
             'title': self._generic_title('', webpage),