mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[ie/twitter] Fix syndication token generation (#12537)
Fix 14cd7f3443
Authored by: bashonly
			
			
This commit is contained in:
		| @@ -1334,7 +1334,7 @@ class TwitterIE(TwitterBaseIE): | ||||
|     def _generate_syndication_token(self, twid): | ||||
|         # ((Number(twid) / 1e15) * Math.PI).toString(36).replace(/(0+|\.)/g, '') | ||||
|         translation = str.maketrans(dict.fromkeys('0.')) | ||||
|         return js_number_to_string((int(twid) / 1e15) * math.PI, 36).translate(translation) | ||||
|         return js_number_to_string((int(twid) / 1e15) * math.pi, 36).translate(translation) | ||||
| 
 | ||||
|     def _call_syndication_api(self, twid): | ||||
|         self.report_warning( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 bashonly
					bashonly