]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/viidea.py
[extractor/oneplace] Add OnePlacePodcast extractor (#5549)
[yt-dlp.git] / yt_dlp / extractor / viidea.py
index a0abbae60fee59fda14d8cf7ac5a235a3df7472d..4cdf2677b2769c1bf3d62f262d623ad01d1e6b05 100644 (file)
@@ -1,5 +1,3 @@
-from __future__ import unicode_literals
-
 import re
 
 from .common import InfoExtractor
@@ -117,7 +115,7 @@ class ViideaIE(InfoExtractor):
     }]
 
     def _real_extract(self, url):
-        lecture_slug, explicit_part_id = re.match(self._VALID_URL, url).groups()
+        lecture_slug, explicit_part_id = self._match_valid_url(url).groups()
 
         webpage = self._download_webpage(url, lecture_slug)
 
@@ -160,7 +158,6 @@ def extract_part(part_id):
                 smil_url = '%s/%s/video/%s/smil.xml' % (base_url, lecture_slug, part_id)
                 smil = self._download_smil(smil_url, lecture_id)
                 info = self._parse_smil(smil, smil_url, lecture_id)
-                self._sort_formats(info['formats'])
                 info['id'] = lecture_id if not multipart else '%s_part%s' % (lecture_id, part_id)
                 info['display_id'] = lecture_slug if not multipart else '%s_part%s' % (lecture_slug, part_id)
                 if multipart: