mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
[ie/twitter] Fix syndication token generation (#12537)
Fix 14cd7f3443
Authored by: bashonly
This commit is contained in:
parent
9d70abe4de
commit
b8b4754704
1 changed files with 1 additions and 1 deletions
|
@ -1334,7 +1334,7 @@ def _build_graphql_query(self, media_id):
|
|||
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(
|
||||
|
|
Loading…
Reference in a new issue