Repository navigation
Reuse SignatureSolver across videos (cache per player JS + preprocessed player) #137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
dfd0a0d
119962b
ee24cda
d5f94a0
370f935
ef24e24
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -250,6 +250,10 @@ public class YouTube { | |
|
|
||
| do { | ||
| try await Extraction.applySignature(streamManifest: &streamManifest, videoInfo: videoInfo, js: js) | ||
| } catch is CancellationError { | ||
| // Cancellation is not a stale-JS failure — propagate it | ||
| // immediately instead of clearing the cache and retrying. | ||
| throw CancellationError() | ||
|
Comment on lines
+253
to
+256
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When |
||
| } catch { | ||
| // to force an update to the js file, we clear the cache and retry | ||
| _js = nil | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.