Skip to content

refactor: extract common jwt_is_expired to utils #12630

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

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

MichaelDeBoey
Copy link
Contributor

@MichaelDeBoey MichaelDeBoey commented Mar 15, 2025

Description of your pull request and other information

As mentioned by @seproDev in #12479 (comment) & #12479 (comment), _is_jwt_token_expired should be in a common place so that it can be used by all extractors without needing to re-invent the wheel.

CC/ @bashonly

Template

Before submitting a pull request make sure you have:

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check those that apply and remove the others:

  • I am the original author of the code in this PR, and I am willing to release it under Unlicense

What is the purpose of your pull request? Check those that apply and remove the others:

  • Core bug fix/improvement

@seproDev seproDev added the docs/meta/cleanup related to docs, code cleanup, templates, devscripts etc label Mar 16, 2025
@bashonly bashonly added the pending-fixes PR has had changes requested label Mar 16, 2025
@bashonly bashonly self-assigned this Mar 16, 2025
@MichaelDeBoey MichaelDeBoey requested a review from bashonly March 16, 2025 22:41
@MichaelDeBoey MichaelDeBoey changed the title refactor: extract common _is_jwt_token_expired to InfoExtractor refactor: extract common jwt_is_expired to utils Mar 16, 2025
@MichaelDeBoey MichaelDeBoey requested a review from bashonly March 16, 2025 23:40
@bashonly bashonly moved this to After Release in Release Tasks Mar 22, 2025
@bashonly bashonly moved this from After Release to Release blocker in Release Tasks May 11, 2025
@bashonly bashonly moved this from Release blocker to Nice to have in Release Tasks Jul 10, 2025
@bashonly bashonly moved this from Nice to have to Release blocker in Release Tasks Jul 22, 2025
@MichaelDeBoey
Copy link
Contributor Author

@bashonly @seproDev I guess this PR is ready now?
Or did I miss some things that you still want to have changed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs/meta/cleanup related to docs, code cleanup, templates, devscripts etc pending-fixes PR has had changes requested
Projects
Status: Release blocker
Development

Successfully merging this pull request may close these issues.

3 participants