fix none existing timestamp key in info json

This commit is contained in:
Simon
2025-06-08 10:04:45 +07:00
parent b495761e9e
commit e62a4e0fcf

View File

@@ -195,7 +195,7 @@ class YoutubeVideo(YouTubeItem, YoutubeSubtitle):
def _build_published(self): def _build_published(self):
"""build published date or timestamp""" """build published date or timestamp"""
timestamp = self.youtube_meta["timestamp"] timestamp = self.youtube_meta.get("timestamp")
if timestamp: if timestamp:
return timestamp return timestamp