Rename upload_timestamp to timestamp
[youtube-dl] / youtube_dl / YoutubeDL.py
index d9f83419e1f20cb917a79f4e1bd143fa067220c4..a4214de789459c6088fe128528c2160a169474d4 100644 (file)
@@ -689,9 +689,9 @@ class YoutubeDL(object):
         if 'display_id' not in info_dict and 'id' in info_dict:
             info_dict['display_id'] = info_dict['id']
 
-        if info_dict.get('upload_date') is None and info_dict.get('upload_timestamp') is not None:
+        if info_dict.get('upload_date') is None and info_dict.get('timestamp') is not None:
             upload_date = datetime.datetime.utcfromtimestamp(
-                info_dict['upload_timestamp'])
+                info_dict['timestamp'])
             info_dict['upload_date'] = upload_date.strftime('%Y%m%d')
 
         # This extractors handle format selection themselves