dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							680069a149 
							
						 
					 
					
						
						
							
							[YouTube] Improve n-sig function extraction for player aa3fc80b  
						
						... 
						
						
						
						Resolves  #33123  
					
						2025-05-03 00:09:21 +01:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							c052a16f72 
							
						 
					 
					
						
						
							
							[JSInterp] Add tests and relevant functionality from yt-dlp  
						
						... 
						
						
						
						* thx seproDev, bashonly: yt-dlp/yt-dlp#12760, yt-dlp/yt-dlp#12761:
  - Improve nested attribute support
  - Pass global stack when extracting objects
  - interpret_statement: Match attribute before indexing
  - Fix assignment to array elements with nested brackets
  - Add new signature tests
  - Invalidate JS function cache
  - Avoid testdata dupes now that we cache by URL
* rework nsig function name search
* fully fixes  #33102 
* update cache required versions
* update program version 
						
						
					 
					
						2025-04-08 01:59:00 +01:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							2b4fbfce25 
							
						 
					 
					
						
						
							
							[YouTube] Support player 4fcd6e4a  
						
						... 
						
						
						
						thx seproDev, bashonly: yt-dlp/yt-dlp#12748  
						
						
					 
					
						2025-03-26 02:27:25 +00:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							b982d77d0b 
							
						 
					 
					
						
						
							
							[YouTube] Align signature tests with yt-dlp  
						
						... 
						
						
						
						thx bashonly, yt-dlp/yt-dlp#12725  
						
						
					 
					
						2025-03-25 22:35:06 +00:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							087d865230 
							
						 
					 
					
						
						
							
							[YouTube] Support new player URL patterns  
						
						
						
						
					 
					
						2025-03-25 22:35:06 +00:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							a464c159e6 
							
						 
					 
					
						
						
							
							[YouTube] Make _extract_player_info() use _search_regex()  
						
						
						
						
					 
					
						2025-03-25 22:35:05 +00:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							da7223d4aa 
							
						 
					 
					
						
						
							
							[YouTube] Improve support for tce-style player JS  
						
						... 
						
						
						
						* improve extraction of global "useful data" Array from player JS
* also handle tv-player and add tests: thx seproDev (yt-dlp/yt-dlp#12684 )
Co-Authored-By: sepro <sepro@sepr0.com> 
						
						
					 
					
						2025-03-21 16:26:25 +00:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							283dca56fe 
							
						 
					 
					
						
						
							
							[YouTube] Initially support tce-style player JS  
						
						... 
						
						
						
						* resolves  #33079  
						
						
					 
					
						2025-03-11 02:00:24 +00:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							711e72c292 
							
						 
					 
					
						
						
							
							[JSInterp] Fix bit-shift coercion for player 9c6dfc4a  
						
						
						
						
					 
					
						2025-02-07 00:01:50 +00:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							eeafbbc3e5 
							
						 
					 
					
						
						
							
							[YouTube] Fix signature function extraction for 2f1832d2  
						
						... 
						
						
						
						* `_` was omitted from patterns
* thx yt-dlp/yt-dlp#11801 
Co-authored-by: bashonly 
						
						
					 
					
						2024-12-16 12:38:51 +00:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							cd7c7b5edb 
							
						 
					 
					
						
						
							
							[YouTube] Simplify pattern for nsig function name extraction  
						
						
						
						
					 
					
						2024-12-16 12:38:51 +00:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							eed784e15f 
							
						 
					 
					
						
						
							
							[YouTube] Pass nsig value as return hook, fixes player 3bb1f723  
						
						
						
						
					 
					
						2024-12-16 12:38:51 +00:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							b4469a0f65 
							
						 
					 
					
						
						
							
							[YouTube] Handle player 3bb1f723  
						
						... 
						
						
						
						* fix signature code extraction
* raise if n function returns input value
* add new tests from yt-dlp
Co-authored-by: bashonly 
						
						
					 
					
						2024-12-16 12:38:51 +00:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							dbc08fba83 
							
						 
					 
					
						
						
							
							[jsinterp] Improve slice implementation for player b12cc44b  
						
						... 
						
						
						
						Partly taken from yt-dlp/yt-dlp#10664, thx seproDev
        Fixes  #32896  
						
						
					 
					
						2024-08-06 20:51:38 +01:00 
						 
				 
			
				
					
						
							
							
								Aiur Adept 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							71223bff39 
							
						 
					 
					
						
						
							
							[Youtube] Fix nsig extraction for player 20dfca59  ( #32891 )  
						
						... 
						
						
						
						* dirkf's patch for nsig extraction
* add generic search per  yt-dlp/yt-dlp/pull/10611 - thx bashonly
---------
Co-authored-by: dirkf <fieldhouse@gmx.net> 
						
						
					 
					
						2024-08-01 19:18:34 +01:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							e1b3fa242c 
							
						 
					 
					
						
						
							
							[Youtube] Find n function name in player 3400486c  
						
						... 
						
						
						
						Fixes  #32877  
					
						2024-07-25 00:16:00 +01:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							16f5bbc464 
							
						 
					 
					
						
						
							
							[YouTube] Fix nsig processing for player b22ef6e7  
						
						... 
						
						
						
						* improve extraction of function name (like yt-dlp/yt-dlp#10390 )
* always use JSInterp to extract function code (yt-dlp/yt-dlp#10396 , thx seproDev, pukkandan) 
						
						
					 
					
						2024-07-11 00:50:46 +01:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							ad01fa6cca 
							
						 
					 
					
						
						
							
							[jsinterp] Add Debugger from yt-dlp  
						
						... 
						
						
						
						* https://github.com/yt-dlp/yt-dlp/commit/8f53dc4 
* thx pukkandan 
						
						
					 
					
						2024-06-20 20:03:49 +01:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							a25e9f3c84 
							
						 
					 
					
						
						
							
							[compat] Use compat_open()  
						
						
						
						
					 
					
						2023-07-25 13:19:43 +01:00 
						 
				 
			
				
					
						
							
							
								pukkandan 
							
						 
					 
					
						
						
						
						
							
						
						
							9112e668a5 
							
						 
					 
					
						
						
							
							[YouTube] Improve nsig function name extraction  
						
						... 
						
						
						
						Fixes player b7910ca8, using `,` vs `;`
See https://github.com/ytdl-org/youtube-dl/issues/32292#issuecomment-1602231170 
Co-authored-by: dirkf 
						
						
					 
					
						2023-06-22 16:46:53 +01:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							ae8ba2c319 
							
						 
					 
					
						
						
							
							[YouTube] Fix KeyError QV in signature extraction failed  
						
						... 
						
						
						
						* temporarily force missing global definition into sig JS
* improve test: thanks https://github.com/yt-dlp/yt-dlp/issues/7327#issuecomment-1595274615 
* resolves  #32314  
						
						
					 
					
						2023-06-17 15:55:19 +01:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							a2534f7b88 
							
						 
					 
					
						
						
							
							[jsinterp] Fix div bug breaking player 8c7583ff  
						
						... 
						
						
						
						Thx bashonly: https://github.com/ytdl-org/youtube-dl/issues/32292#issuecomment-1585639223 
Fixes  #32292  
						
						
					 
					
						2023-06-11 17:23:00 +01:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							d89c2137ba 
							
						 
					 
					
						
						
							
							[jsinterp] Small updates for a85a875  
						
						... 
						
						
						
						* update signature tests
* clarify NaN handling 
						
						
					 
					
						2023-05-23 16:50:25 +01:00 
						 
				 
			
				
					
						
							
							
								pukkandan 
							
						 
					 
					
						
						
						
						
							
						
						
							3e92c60fcd 
							
						 
					 
					
						
						
							
							[jsinterp] Handle Date at epoch 0  
						
						... 
						
						
						
						See yt-dlp/yt_dlp#6400  
						
						
					 
					
						2023-03-03 15:02:15 +00:00 
						 
				 
			
				
					
						
							
							
								pukkandan 
							
						 
					 
					
						
						
						
						
							
						
						
							14ef89a8da 
							
						 
					 
					
						
						
							
							Support if statements  
						
						... 
						
						
						
						Fix for yt-dlp/yt_dlp#6131
Closes  #31509  
						
						
					 
					
						2023-02-02 13:12:46 +00:00 
						 
				 
			
				
					
						
							
							
								pukkandan 
							
						 
					 
					
						
						
						
						
							
						
						
							7009bb9f31 
							
						 
					 
					
						
						
							
							[jsinterp] Workaround operator associativity issue  
						
						... 
						
						
						
						* temporary fix for player 5a3b6271 [1]
1. https://github.com/yt-dlp/yt-dlp/issues/4635#issuecomment-1235384480  
						
						
					 
					
						2022-09-03 00:53:56 +01:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							55c823634d 
							
						 
					 
					
						
						
							
							[jsinterp] Handle new YT players 113ca41c, c57c113c  
						
						... 
						
						
						
						* add NaN
* allow any white-space character for `after_op`
* align with yt-dlp f26af78a8ac11d9d617ed31ea5282cfaa5bcbcfa (charcodeAt and bitwise overflow)
* allow escaping in regex, fixing player c57c113c 
						
						
					 
					
						2022-09-01 10:57:12 +01:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							d619dd712f 
							
						 
					 
					
						
						
							
							[jsinterp] Fix bug in operator precedence  
						
						... 
						
						
						
						* from 164b03c486 
						
						
					 
					
						2022-08-25 12:16:10 +01:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							46b8ae2f52 
							
						 
					 
					
						
						
							
							[jsinterp] Clean up and pull yt-dlp style  
						
						... 
						
						
						
						* add compat_re_Pattern
* improve compat_collections_chain_map
* use class JS_Undefined
* remove unused code 
						
						
					 
					
						2022-08-19 15:34:33 +01:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							538ec65ba7 
							
						 
					 
					
						
						
							
							[jsinterp] Handle regexp literals and throw/catch execution ( #31182 )  
						
						... 
						
						
						
						* based on f6ca640b12 
						
						
					 
					
						2022-08-19 11:45:04 +01:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							b0a60ce203 
							
						 
					 
					
						
						
							
							[jsinterp] Improve JS language support ( #31175 )  
						
						... 
						
						
						
						* operator ??
* operator ?.
* operator **
* accurate operator functions
* `undefined` handling
* object literals {a: 1, "b": expr}
* more tests for weird JS comparisons: see https://github.com/ytdl-org/youtube-dl/issues/31173#issuecomment-1217854397 . 
						
						
					 
					
						2022-08-17 14:22:02 +01:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d231b56717 
							
						 
					 
					
						
						
							
							[jsinterp] Overhaul JSInterp to handle new YT players 4c3f79c5, 324f67b9 ( #31170 )  
						
						... 
						
						
						
						* back-port from yt-dlp 8f53dc44a0cc1c2d98c35740b9293462c080f5d0, thanks pukkandan
* also support void, improve <</>> precedence, improve expressions in comma-list
* add more tests 
						
						
					 
					
						2022-08-14 18:45:45 +01:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1e677567cd 
							
						 
					 
					
						
						
							
							[YouTube] Fix n-sig for player e06dea74 ( #30582 )  
						
						... 
						
						
						
						From yt-dl commit 48416bc 
						
						
					 
					
						2022-02-01 14:39:03 +00:00 
						 
				 
			
				
					
						
							
							
								dirkf 
							
						 
					 
					
						
						
						
						
							
						
						
							9d142109f4 
							
						 
					 
					
						
						
							
							Back-port test_youtube_signature.py from yt-dlp and fix JSInterp accordingly  
						
						
						
						
					 
					
						2022-01-30 00:05:54 +00:00 
						 
				 
			
				
					
						
							
							
								Remita Amine 
							
						 
					 
					
						
						
						
						
							
						
						
							99c68db0a8 
							
						 
					 
					
						
						
							
							[youtube] add support phone/tablet JS player( closes   #26424 )  
						
						
						
						
					 
					
						2021-02-08 09:20:28 +01:00 
						 
				 
			
				
					
						
							
							
								Remita Amine 
							
						 
					 
					
						
						
						
						
							
						
						
							b46483a6ec 
							
						 
					 
					
						
						
							
							[youtube/test_youtube_signature] fix test  
						
						
						
						
					 
					
						2021-02-01 16:35:07 +01:00 
						 
				 
			
				
					
						
							
							
								Sergey M․ 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							e40c758c2a 
							
						 
					 
					
						
						
							
							[youtube] Improve player id extraction and add tests  
						
						
						
						
					 
					
						2020-05-02 07:18:08 +07:00 
						 
				 
			
				
					
						
							
							
								Yen Chi Hsuan 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							582be35847 
							
						 
					 
					
						
						
							
							Update coding style after pycodestyle 2.1.0  
						
						... 
						
						
						
						In pycodestyle 2.1.0, E305 was introduced, which requires two blank
lines after top level declarations, too.
See https://github.com/PyCQA/pycodestyle/issues/400 
See also #10689 ; thanks @stepshal for first mentioning this issue and
initial patches 
						
						
					 
					
						2016-11-17 19:45:42 +08:00 
						 
				 
			
				
					
						
							
							
								Philipp Hagemeister 
							
						 
					 
					
						
						
						
						
							
						
						
							3eff81fbf7 
							
						 
					 
					
						
						
							
							[jsinterp] Disable comment support  
						
						... 
						
						
						
						We need a proper lexer to be able to understand YouTube's code, which contains /* inside of strings.
For now it's sufficient to just disable comment support altogether.
Fixes  #4976 , fixes  #4979 , fixes  #4980 , fixes  #4981 , fixes  #4982 .
Closes  #4977 . 
						
						
					 
					
						2015-02-18 10:47:42 +01:00 
						 
				 
			
				
					
						
							
							
								Philipp Hagemeister 
							
						 
					 
					
						
						
						
						
							
						
						
							6a78740211 
							
						 
					 
					
						
						
							
							[test/test_youtube_signature] Use fake YDL  
						
						
						
						
					 
					
						2015-02-10 05:28:59 +01:00 
						 
				 
			
				
					
						
							
							
								Michael Käufl 
							
						 
					 
					
						
						
						
						
							
						
						
							498942f187 
							
						 
					 
					
						
						
							
							[test_youtube_signature] Fix import  
						
						... 
						
						
						
						Broken in commit 8c25f81beea169c9d6540eea1a6f71dc045da6ed 
						
						
					 
					
						2014-11-12 15:23:55 +01:00 
						 
				 
			
				
					
						
							
							
								Philipp Hagemeister 
							
						 
					 
					
						
						
						
						
							
						
						
							6be451f422 
							
						 
					 
					
						
						
							
							[youtube] Remove swf signature test cases  
						
						... 
						
						
						
						These files are now 0 Bytes 
						
						
					 
					
						2014-09-29 05:24:00 +02:00 
						 
				 
			
				
					
						
							
							
								Philipp Hagemeister 
							
						 
					 
					
						
						
						
						
							
						
						
							4bc7009e8a 
							
						 
					 
					
						
						
							
							[jsinterp] Add new testcase  
						
						
						
						
					 
					
						2014-07-25 07:00:54 +02:00 
						 
				 
			
				
					
						
							
							
								Philipp Hagemeister 
							
						 
					 
					
						
						
						
						
							
						
						
							42f4dcfe41 
							
						 
					 
					
						
						
							
							[test_youtube_signatures] Modernize  
						
						
						
						
					 
					
						2014-07-24 11:39:54 +02:00 
						 
				 
			
				
					
						
							
							
								Jaime Marquínez Ferrándiz 
							
						 
					 
					
						
						
						
						
							
						
						
							ebe832dc37 
							
						 
					 
					
						
						
							
							[jsinterp] 'reverse' modifies the array in place ( fixes   #3334 )  
						
						
						
						
					 
					
						2014-07-24 11:08:31 +02:00 
						 
				 
			
				
					
						
							
							
								Philipp Hagemeister 
							
						 
					 
					
						
						
						
						
							
						
						
							9f43890bcd 
							
						 
					 
					
						
						
							
							[jsinterp] Allow digits in function names  
						
						
						
						
					 
					
						2014-07-23 02:13:48 +02:00 
						 
				 
			
				
					
						
							
							
								Philipp Hagemeister 
							
						 
					 
					
						
						
						
						
							
						
						
							b6ea11b967 
							
						 
					 
					
						
						
							
							[youtube] Add swf signature test case ( #3270 )  
						
						
						
						
					 
					
						2014-07-20 20:45:36 +02:00 
						 
				 
			
				
					
						
							
							
								Philipp Hagemeister 
							
						 
					 
					
						
						
						
						
							
						
						
							7fd48d0413 
							
						 
					 
					
						
						
							
							[youtube] Correct signature testcase  
						
						
						
						
					 
					
						2014-07-20 18:30:27 +02:00 
						 
				 
			
				
					
						
							
							
								Philipp Hagemeister 
							
						 
					 
					
						
						
						
						
							
						
						
							5425626790 
							
						 
					 
					
						
						
							
							[youtube] Move swfinterp into its own file  
						
						
						
						
					 
					
						2014-07-18 10:24:28 +02:00 
						 
				 
			
				
					
						
							
							
								Jaime Marquínez Ferrándiz 
							
						 
					 
					
						
						
						
						
							
						
						
							ad25aee245 
							
						 
					 
					
						
						
							
							[youtube & jsinterp] Fix signature extraction ( fixes   #3255 )  
						
						... 
						
						
						
						Some functions are defined now inside an object, the jsinterp will search its definition if the variable is not defined in the local namespace. 
						
						
					 
					
						2014-07-15 22:46:39 +02:00