]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/npo.py
[tiktok] Fix `extractor_key` used in archive
[yt-dlp.git] / yt_dlp / extractor / npo.py
index 6984b76a9e31326de4a1cdbb3dd3f2d4c55fa6e6..a8aaef6f16f739c97df0091d8749a77561273239 100644 (file)
@@ -247,8 +247,7 @@ def _get_info(self, url, video_id):
 
         if not formats:
             if not self.get_param('allow_unplayable_formats') and drm:
-                self.raise_no_formats('This video is DRM protected.', expected=True)
-            return
+                self.report_drm(video_id)
 
         self._sort_formats(formats)
 
@@ -468,7 +467,7 @@ def add_format_url(format_url):
 
         return {
             'id': video_id,
-            'title': self._live_title(title) if is_live else title,
+            'title': title,
             'description': metadata.get('info'),
             'thumbnail': metadata.get('images', [{'url': None}])[-1]['url'],
             'upload_date': unified_strdate(metadata.get('gidsdatum')),
@@ -562,7 +561,7 @@ def _real_extract(self, url):
         return {
             'id': video_id,
             'url': stream['url'],
-            'title': self._live_title(title),
+            'title': title,
             'acodec': codec,
             'ext': codec,
             'is_live': True,