]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/netzkino.py
[devscripts/make_changelog] Skip reverted commits
[yt-dlp.git] / yt_dlp / extractor / netzkino.py
index 3d1a06d0b52c9aecf31a05deb744f7d54ebe8efa..9c314e22330ee959437b82d09fbebab749116179 100644 (file)
@@ -1,8 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
-import re
-
 from .common import InfoExtractor
 from ..utils import (
     clean_html,
@@ -50,7 +45,7 @@ class NetzkinoIE(InfoExtractor):
     }]
 
     def _real_extract(self, url):
-        mobj = re.match(self._VALID_URL, url)
+        mobj = self._match_valid_url(url)
         video_id = mobj.group('id')
 
         api_url = 'https://api.netzkino.de.simplecache.net/capi-2.0a/movies/%s.json?d=www' % video_id
@@ -77,7 +72,6 @@ def _real_extract(self, url):
             'ext': 'mp4',
             'url': tpl.replace('{}', film_fn) + suffix[key],
         } for key, tpl in templates.items()]
-        self._sort_formats(formats)
 
         return {
             'id': video_id,