diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-03-13 18:21:55 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-03-13 18:45:14 +0100 |
commit | 955c451456e5268e8596da79d1fcf48df2af7a55 (patch) | |
tree | d1ca5adfd9f5540b748aa57eef57d63ab34e522e /youtube_dl/YoutubeDL.py | |
parent | e5de3f6c89d2432a3afbc6d0545259ad49ee17a9 (diff) |
Rename upload_timestamp to timestamp
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rw-r--r-- | youtube_dl/YoutubeDL.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index d9f83419e..a4214de78 100644 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -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 |