Merge branch 'master' into df-yt-update202503

This commit is contained in:
dirkf 2025-03-10 17:19:37 +00:00 committed by GitHub
commit e5a0422f8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -501,6 +501,7 @@ class TestJSInterpreter(unittest.TestCase):
self._test('function f(){return 0.0 << NaN}', 0) self._test('function f(){return 0.0 << NaN}', 0)
self._test('function f(){return null << undefined}', 0) self._test('function f(){return null << undefined}', 0)
def test_negative(self): def test_negative(self):
self._test('function f(){return 2 * -2.0 ;}', -4) self._test('function f(){return 2 * -2.0 ;}', -4)
self._test('function f(){return 2 - - -2 ;}', 0) self._test('function f(){return 2 - - -2 ;}', 0)

View File

@ -3316,7 +3316,7 @@ class YoutubeTabIE(YoutubeBaseInfoExtractor):
return return
return merge_dicts(self.url_result( return merge_dicts(self.url_result(
update_url_query('https://www.youtube.com/playlist', {'list': content_id}), update_url_query('https://www.youtube.com/playlist', {'list': content_id}),
ie=YoutubeTabIE, video_id=content_id), { ie=YoutubeTabIE.ie_key(), video_id=content_id), {
'title': traverse_obj(view_model, ( 'title': traverse_obj(view_model, (
'metadata', 'lockupMetadataViewModel', 'title', 'content', T(compat_str))), 'metadata', 'lockupMetadataViewModel', 'title', 'content', T(compat_str))),
'thumbnails': self._extract_thumbnails(view_model, ( 'thumbnails': self._extract_thumbnails(view_model, (