]> jfr.im git - yt-dlp.git/commitdiff
[extractor/youtube] Fix `live_status` extraction for playlist videos
authorcoletdjnz <redacted>
Thu, 27 Oct 2022 04:33:35 +0000 (17:33 +1300)
committercoletdjnz <redacted>
Thu, 27 Oct 2022 04:36:54 +0000 (17:36 +1300)
Regression in https://github.com/yt-dlp/yt-dlp/commit/867c66ff97b0639485a2b6ebc28f2e0df0bf8187

Authored by: coletdjnz

yt_dlp/extractor/youtube.py

index e894f74cdb44042a4da9a033603600604e83a0e2..719a151c499ac83173708334a550c1c733a7897a 100644 (file)
@@ -960,6 +960,7 @@ def _extract_video(self, renderer):
                     needs_subscription=self._has_badge(badges, BadgeType.AVAILABILITY_SUBSCRIPTION) or None,
                     is_unlisted=self._has_badge(badges, BadgeType.AVAILABILITY_UNLISTED) or None),
             'concurrent_view_count' if live_status in ('is_live', 'is_upcoming') else 'view_count': view_count,
+            'live_status': live_status
         }