mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 21:39:49 +00:00
fix none existing timestamp key in info json
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user