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
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

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