]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/dlive.py
Reject entire playlists faster with `--match-filter`
[yt-dlp.git] / yt_dlp / extractor / dlive.py
index d95c67a5be529c05b723011017561aee21a3927c..31b4a568f298015a156e9a2a927d9d46aba22794 100644 (file)
@@ -1,7 +1,4 @@
-from __future__ import unicode_literals
-
 import json
-import re
 
 from .common import InfoExtractor
 from ..utils import int_or_none
@@ -26,7 +23,7 @@ class DLiveVODIE(InfoExtractor):
     }]
 
     def _real_extract(self, url):
-        uploader_id, vod_id = re.match(self._VALID_URL, url).groups()
+        uploader_id, vod_id = self._match_valid_url(url).groups()
         broadcast = self._download_json(
             'https://graphigo.prd.dlive.tv/', vod_id,
             data=json.dumps({'query': '''query {
@@ -85,7 +82,7 @@ def _real_extract(self, url):
         self._sort_formats(formats)
         return {
             'id': display_name,
-            'title': self._live_title(title),
+            'title': title,
             'uploader': display_name,
             'uploader_id': username,
             'formats': formats,