diff options
author | bashonly <88596187+bashonly@users.noreply.github.com> | 2025-03-05 00:22:52 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-05 06:22:52 +0000 |
commit | b8b47547049f5ebc3dd680fc7de70ed0ca9c0d70 (patch) | |
tree | 6398da15cb21bf4ad398447492456b8b060ec7fa | |
parent | 9d70abe4de401175cbbaaa36017806f16b2df9af (diff) |
[ie/twitter] Fix syndication token generation (#12537)
Fix 14cd7f3443c6da4d49edaefcc12da9dee86e243e
Authored by: bashonly
-rw-r--r-- | yt_dlp/extractor/twitter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/twitter.py b/yt_dlp/extractor/twitter.py index d32ae3f18..f3695cc06 100644 --- a/yt_dlp/extractor/twitter.py +++ b/yt_dlp/extractor/twitter.py @@ -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( |