Skip to content

Commit

Permalink
[lbry] Extract release_timestamp (closes ytdl-org#28386)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw authored and leshasmlesha committed Apr 3, 2021
1 parent bc7f819 commit 127e2c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions youtube_dl/extractor/lbry.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def _parse_stream(self, stream, url):
'description': stream_value.get('description'),
'license': stream_value.get('license'),
'timestamp': int_or_none(stream.get('timestamp')),
'release_timestamp': int_or_none(stream_value.get('release_time')),
'tags': stream_value.get('tags'),
'duration': int_or_none(media.get('duration')),
'channel': try_get(signing_channel, lambda x: x['value']['title']),
Expand Down Expand Up @@ -92,6 +93,8 @@ class LBRYIE(LBRYBaseIE):
'description': 'md5:f6cb5c704b332d37f5119313c2c98f51',
'timestamp': 1595694354,
'upload_date': '20200725',
'release_timestamp': 1595340697,
'release_date': '20200721',
'width': 1280,
'height': 720,
}
Expand All @@ -106,6 +109,8 @@ class LBRYIE(LBRYBaseIE):
'description': 'md5:661ac4f1db09f31728931d7b88807a61',
'timestamp': 1591312601,
'upload_date': '20200604',
'release_timestamp': 1591312421,
'release_date': '20200604',
'tags': list,
'duration': 2570,
'channel': 'The LBRY Foundation',
Expand Down

0 comments on commit 127e2c1

Please sign in to comment.