mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 02:21:29 +00:00
[extractor/naver] Improve _VALID_URL
for NaverNowIE
(#5620)
Authored by: bashonly
This commit is contained in:
parent
27c0f899c8
commit
d761dfd059
|
@ -254,7 +254,7 @@ def _extract_video_info(self, video_id, url):
|
||||||
|
|
||||||
class NaverNowIE(NaverBaseIE):
|
class NaverNowIE(NaverBaseIE):
|
||||||
IE_NAME = 'navernow'
|
IE_NAME = 'navernow'
|
||||||
_VALID_URL = r'https?://now\.naver\.com/s/now\.(?P<id>[0-9]+)'
|
_VALID_URL = r'https?://now\.naver\.com/s/now\.(?P<id>\w+)'
|
||||||
_API_URL = 'https://apis.naver.com/now_web/oldnow_web/v4'
|
_API_URL = 'https://apis.naver.com/now_web/oldnow_web/v4'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://now.naver.com/s/now.4759?shareReplayId=26331132#replay=',
|
'url': 'https://now.naver.com/s/now.4759?shareReplayId=26331132#replay=',
|
||||||
|
@ -313,6 +313,9 @@ class NaverNowIE(NaverBaseIE):
|
||||||
'title': '아이키의 떰즈업',
|
'title': '아이키의 떰즈업',
|
||||||
},
|
},
|
||||||
'playlist_mincount': 101,
|
'playlist_mincount': 101,
|
||||||
|
}, {
|
||||||
|
'url': 'https://now.naver.com/s/now.kihyunplay?shareReplayId=30573291#replay',
|
||||||
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _extract_replay(self, show_id, replay_id):
|
def _extract_replay(self, show_id, replay_id):
|
||||||
|
|
Loading…
Reference in a new issue