mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-02 14:37:21 +00:00
chore: correct tests
This commit is contained in:
parent
fad7c2a75a
commit
27b31cc3df
|
@ -12,7 +12,8 @@ class PiaLiveIE(InfoExtractor):
|
|||
{
|
||||
'url': 'https://player.pia-live.jp/stream/4JagFBEIM14s_hK9aXHKf3k3F3bY5eoHFQxu68TC6krUDqGOwN4d61dCWQYOd6CTxl4hjya9dsfEZGsM4uGOUdax60lEI4twsXGXf7crmz8Gk__GhupTrWxA7RFRVt76',
|
||||
'info_dict': {
|
||||
'id': '2431867_001',
|
||||
'id': '88f3109a-f503-4d0f-a9f7-9f39ac745d84',
|
||||
'display_id': '2431867_001',
|
||||
'title': 'こながめでたい日2024の視聴ページ | PIA LIVE STREAM(ぴあライブストリーム)',
|
||||
'live_status': 'was_live',
|
||||
'comment_count': 1000,
|
||||
|
@ -25,7 +26,8 @@ class PiaLiveIE(InfoExtractor):
|
|||
{
|
||||
'url': 'https://player.pia-live.jp/stream/4JagFBEIM14s_hK9aXHKf3k3F3bY5eoHFQxu68TC6krJdu0GVBVbVy01IwpJ6J3qBEm3d9TCTt1d0eWpsZGj7DrOjVOmS7GAWGwyscMgiThopJvzgWC4H5b-7XQjAfRZ',
|
||||
'info_dict': {
|
||||
'id': '2431867_002',
|
||||
'id': '9ce8b8ba-f6d1-4d1f-83a0-18c3148ded93',
|
||||
'display_id': '2431867_002',
|
||||
'title': 'こながめでたい日2024の視聴ページ | PIA LIVE STREAM(ぴあライブストリーム)',
|
||||
'live_status': 'was_live',
|
||||
'comment_count': 1000,
|
||||
|
@ -93,7 +95,7 @@ def _real_extract(self, url):
|
|||
return self.handle_embed_player(
|
||||
player_tag_list['data']['movie_one_tag'],
|
||||
info_dict={
|
||||
'id': program_code,
|
||||
'display_id': program_code,
|
||||
'title': self._html_extract_title(webpage),
|
||||
'comments': comments,
|
||||
'comment_count': len(comments),
|
||||
|
|
|
@ -82,7 +82,8 @@ class PIAULIZAPortalIE(InfoExtractor):
|
|||
_TESTS = [{
|
||||
'url': 'https://ulizaportal.jp/pages/005f18b7-e810-5618-cb82-0987c5755d44',
|
||||
'info_dict': {
|
||||
'id': '005f18b7-e810-5618-cb82-0987c5755d44',
|
||||
'id': 'ae350126-5e22-4a7f-a8ac-8d0fd448b800',
|
||||
'display_id': '005f18b7-e810-5618-cb82-0987c5755d44',
|
||||
'title': 'プレゼンテーションプレイヤーのサンプル',
|
||||
'live_status': 'not_live',
|
||||
},
|
||||
|
@ -93,7 +94,8 @@ class PIAULIZAPortalIE(InfoExtractor):
|
|||
}, {
|
||||
'url': 'https://ulizaportal.jp/pages/005e1b23-fe93-5780-19a0-98e917cc4b7d?expires=4102412400&signature=f422a993b683e1068f946caf406d211c17d1ef17da8bef3df4a519502155aa91&version=1',
|
||||
'info_dict': {
|
||||
'id': '005e1b23-fe93-5780-19a0-98e917cc4b7d',
|
||||
'id': '0644ecc8-e354-41b4-b957-3b08a2d63df1',
|
||||
'display_id': '005e1b23-fe93-5780-19a0-98e917cc4b7d',
|
||||
'title': '【確認用】視聴サンプルページ(ULIZA)',
|
||||
'live_status': 'not_live',
|
||||
},
|
||||
|
@ -119,6 +121,6 @@ def _real_extract(self, url):
|
|||
player_data_url,
|
||||
ie=PIAULIZAPortalAPIIE.ie_key(),
|
||||
url_transparent=True,
|
||||
video_id=video_id,
|
||||
display_id=video_id,
|
||||
video_title=self._html_extract_title(webpage),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue