diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-11-07 02:38:38 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-11-07 02:49:03 +0530 |
commit | 5da08bde9e073987d1aae2683235721e4813f9c6 (patch) | |
tree | 7a950656d4c1973a356e3990093e1aec538deb84 /yt_dlp/extractor/vlive.py | |
parent | ff48fc04d0001b98a7dcbd30cce67aa1135ef355 (diff) | |
download | hypervideo-pre-5da08bde9e073987d1aae2683235721e4813f9c6.tar.lz hypervideo-pre-5da08bde9e073987d1aae2683235721e4813f9c6.tar.xz hypervideo-pre-5da08bde9e073987d1aae2683235721e4813f9c6.zip |
[extractor/vlive] Extract `release_timestamp`
Closes #5424
Diffstat (limited to 'yt_dlp/extractor/vlive.py')
-rw-r--r-- | yt_dlp/extractor/vlive.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/yt_dlp/extractor/vlive.py b/yt_dlp/extractor/vlive.py index c60801417..f4bb079b2 100644 --- a/yt_dlp/extractor/vlive.py +++ b/yt_dlp/extractor/vlive.py @@ -13,6 +13,7 @@ from ..utils import ( merge_dicts, str_or_none, strip_or_none, + traverse_obj, try_get, urlencode_postdata, url_or_none, @@ -81,6 +82,13 @@ class VLiveIE(VLiveBaseIE): 'upload_date': '20150817', 'thumbnail': r're:^https?://.*\.(?:jpg|png)$', 'timestamp': 1439816449, + 'like_count': int, + 'channel': 'Girl\'s Day', + 'channel_id': 'FDF27', + 'comment_count': int, + 'release_timestamp': 1439818140, + 'release_date': '20150817', + 'duration': 1014, }, 'params': { 'skip_download': True, @@ -98,6 +106,13 @@ class VLiveIE(VLiveBaseIE): 'upload_date': '20161112', 'thumbnail': r're:^https?://.*\.(?:jpg|png)$', 'timestamp': 1478923074, + 'like_count': int, + 'channel': 'EXO', + 'channel_id': 'F94BD', + 'comment_count': int, + 'release_timestamp': 1478924280, + 'release_date': '20161112', + 'duration': 906, }, 'params': { 'skip_download': True, @@ -169,6 +184,7 @@ class VLiveIE(VLiveBaseIE): 'like_count': int_or_none(video.get('likeCount')), 'comment_count': int_or_none(video.get('commentCount')), 'timestamp': int_or_none(video.get('createdAt'), scale=1000), + 'release_timestamp': int_or_none(traverse_obj(video, 'onAirStartAt', 'willStartAt'), scale=1000), 'thumbnail': video.get('thumb'), } |