From 39ca3b5c7f8b05ce2b23bfda158ddf8d47434794 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Wed, 15 Dec 2021 21:30:46 +0530 Subject: [extractor] Standardize `_live_title` --- yt_dlp/extractor/common.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'yt_dlp/extractor/common.py') diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index 5562d1862..431d59351 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -3456,10 +3456,8 @@ class InfoExtractor(object): return formats def _live_title(self, name): - """ Generate the title for a live video """ - now = datetime.datetime.now() - now_str = now.strftime('%Y-%m-%d %H:%M') - return name + ' ' + now_str + self._downloader.deprecation_warning('yt_dlp.InfoExtractor._live_title is deprecated and does not work as expected') + return name def _int(self, v, name, fatal=False, **kwargs): res = int_or_none(v, **kwargs) -- cgit v1.2.3