fix none existing timestamp key in info json
This commit is contained in:
parent
b495761e9e
commit
e62a4e0fcf
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user