Skip to content
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

Offline --get-id #25503

Closed
SebiderSushi opened this issue Jun 2, 2020 · 1 comment
Closed

Offline --get-id #25503

SebiderSushi opened this issue Jun 2, 2020 · 1 comment
Labels

Comments

@SebiderSushi
Copy link

@SebiderSushi SebiderSushi commented Jun 2, 2020

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

Is it possible to tweak youtube-dl without too much effort so that things like the video id can be inferred from the URL whenever possible?

I am interested in this as it would open up the abilities of the parser towards scripts, so that things like the video id can still be parsed by youtube-dl even if the video is no longer available at it's original source or while the computer running youtube-dl is offline.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 2, 2020

Generic solution will require implementing this in each extractor. For partial solution you can use _VALID_URL regex and try capture id group.

@dstftw dstftw closed this Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.