Compare commits

...

2 Commits

Author SHA1 Message Date
bashonly
32fdd21fae
test 2025-04-23 00:10:46 +00:00
bashonly
9c9c3c89ab
do not warn since we have fallback 2025-04-23 00:09:41 +00:00

View File

@ -21,7 +21,7 @@ class GetCourseRuPlayerIE(InfoExtractor):
}, },
'skip': 'JWT expired', 'skip': 'JWT expired',
}, { }, {
'url': 'https://cf-api-2.vhcdn.com/sign-player/?json=eyJ2aWRlb19oYXNoIjoiOGFmZDdjNDg5OTUyMTA4ZTAwZjAxOTU5MGYzNzExZjMiLCJ1c2VyX2lkIjo0MjI3MDg4MDMsInN1Yl9sb2dpbl91c2VyX2lkIjpudWxsLCJsZXNzb25faWQiOjM0MjA5NTQ5OSwiaXAiOiIxNzguMjM3LjIzOC4xMjciLCJnY19ob3N0Ijoic2Nob29sLm9sbmV2YWRlY29yLmNvbSIsInRpbWUiOjE3NDUwMTMyNDAsInBheWxvYWQiOiJ1XzQyMjcwODgwMyIsInVpX2xhbmd1YWdlIjoicnUifQ==&s=69ef351e301fa4286d5699c897c4f02b', 'url': 'https://cf-api-2.vhcdn.com/sign-player/?json=example',
'info_dict': { 'info_dict': {
'id': '435735291', 'id': '435735291',
'title': '8afd7c489952108e00f019590f3711f3', 'title': '8afd7c489952108e00f019590f3711f3',
@ -178,7 +178,7 @@ class GetCourseRuIE(InfoExtractor):
playlist_id = self._search_regex( playlist_id = self._search_regex(
r'window\.(?:lessonId|gcsObjectId)\s*=\s*(\d+)', webpage, 'playlist id', default=display_id) r'window\.(?:lessonId|gcsObjectId)\s*=\s*(\d+)', webpage, 'playlist id', default=display_id)
title = self._og_search_title(webpage) or self._html_extract_title(webpage) title = self._og_search_title(webpage, default=None) or self._html_extract_title(webpage)
return self.playlist_from_matches( return self.playlist_from_matches(
re.findall(GetCourseRuPlayerIE._EMBED_REGEX[0], webpage), re.findall(GetCourseRuPlayerIE._EMBED_REGEX[0], webpage),