[extractor/naver] Improve _VALID_URL for NaverNowIE (#5620)

Authored by: bashonly
This commit is contained in:
bashonly 2022-11-22 03:42:16 +00:00 committed by GitHub
parent 27c0f899c8
commit d761dfd059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -254,7 +254,7 @@ def _extract_video_info(self, video_id, url):
class NaverNowIE(NaverBaseIE):
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'
_TESTS = [{
'url': 'https://now.naver.com/s/now.4759?shareReplayId=26331132#replay=',
@ -313,6 +313,9 @@ class NaverNowIE(NaverBaseIE):
'title': '아이키의 떰즈업',
},
'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):