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

downloaded file's ext not match the extract_info #23591

Closed
EAFA0 opened this issue Jan 1, 2020 · 1 comment
Closed

downloaded file's ext not match the extract_info #23591

EAFA0 opened this issue Jan 1, 2020 · 1 comment
Labels

Comments

@EAFA0
Copy link

@EAFA0 EAFA0 commented Jan 1, 2020

Here is the bug code.

from youtube_dl import YoutubeDL

video_url = 'https://www.youtube.com/watch?v=XAXwmMu8otM'

ytd_opts = {
    'outtmpl': './%(id)s.%(ext)s'
}

with YoutubeDL(ytd_opts) as ydl:
    info_dict = ydl.extract_info(video_url)

print(info_dict['ext'])

The downloaded file's ext is 'mkv', but the info's ext is 'webm'.

My environment is:

  1. ubuntu 16.04
  2. python 3.7.4
  3. youtube-dl 2020.01.01

Thanks!

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 1, 2020

Final ext is not supposed to match.

@dstftw dstftw closed this Jan 1, 2020
@dstftw dstftw added the invalid label Jan 1, 2020
@jsmith1299 jsmith1299 mentioned this issue Apr 11, 2020
1 of 5 tasks complete
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.