1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-31 14:45:14 +00:00

[extractor] Standardize _live_title

This commit is contained in:
pukkandan
2021-12-15 21:30:46 +05:30
parent 46383212b3
commit 39ca3b5c7f
67 changed files with 68 additions and 94 deletions

View File

@@ -2673,6 +2673,9 @@ class YoutubeDL(object):
if self._num_downloads >= int(max_downloads):
raise MaxDownloadsReached()
if info_dict.get('is_live'):
info_dict['title'] += ' ' + datetime.datetime.now().strftime('%Y-%m-%d %H:%M')
# TODO: backward compatibility, to be removed
info_dict['fulltitle'] = info_dict['title']