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

concert.arte.tv format code is identical for different languages #3410

Closed
smrqdt opened this issue Jul 31, 2014 · 2 comments
Closed

concert.arte.tv format code is identical for different languages #3410

smrqdt opened this issue Jul 31, 2014 · 2 comments

Comments

@smrqdt
Copy link

@smrqdt smrqdt commented Jul 31, 2014

youtube-dl -F http://concert.arte.tv/de/montypython 
[arte.tv:concert] montypython: Downloading webpage
[arte.tv:concert] montypython: Downloading JSON metadata
[info] Available formats for 29706:
format code extension resolution  note 
216-300-VO  mp4       384x216     Originalversion (frz. UT)  (worst)
216-300-VO  mp4       384x216     OmU 
216-300-VO  mp4       384x216     Originalversion 
406-800-VO  mp4       720x406     Originalversion (frz. UT) 
406-800-VO  mp4       720x406     OmU 
406-800-VO  mp4       720x406     Originalversion 
406-1500-VO mp4       720x406     Originalversion (frz. UT) 
406-1500-VO mp4       720x406     Originalversion 
406-1500-VO mp4       720x406     OmU 
720-2200-VO m3u8      1280x720    Originalversion (frz. UT) 
720-2200-VO m3u8      1280x720    OmU 
720-2200-VO m3u8      1280x720    Originalversion 
720-2200-VO mp4       1280x720    OmU 
720-2200-VO mp4       1280x720    Originalversion 
720-2200-VO mp4       1280x720    Originalversion (frz. UT)  (best)

Although there are 3 different videos with subtitles in other languages (or no subs) the format code is the same. So youtube-dl always downloads the French version (because it’s the last?).

Idea for fix: add an increasing number if format code already exists.

Thank you for maintaining this epic tool!

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Jul 31, 2015

now, every format has a unique id:

youtube-dl -F http://concert.arte.tv/de/montypython
[arte.tv:concert] montypython: Downloading webpage
[arte.tv:concert] montypython: Downloading JSON metadata
[arte.tv:concert] montypython: Checking HTTP_MQ_2 video format URL
[arte.tv:concert] montypython: Checking HLS_MOBILE_1 video format URL
[arte.tv:concert] montypython: Checking HTTP_EQ_2 video format URL
[arte.tv:concert] montypython: Checking HTTP_SQ_1 video format URL
[arte.tv:concert] montypython: Checking HLS_MOBILE_2 video format URL
[arte.tv:concert] montypython: Checking HTTP_HQ_1 video format URL
[arte.tv:concert] montypython: Checking HTTP_HQ_2 video format URL
[arte.tv:concert] montypython: Checking HTTP_EQ_1 video format URL
[arte.tv:concert] montypython: Checking HTTP_SQ_2 video format URL
[arte.tv:concert] montypython: Checking HTTP_MQ_1 video format URL
[info] Available formats for 051529-000-A:
format code   extension  resolution note
HTTP_HQ_2     mp4        720x406    VF, Frz. Version  800k 
HTTP_MQ_2     mp4        384x216    VF, Frz. Version  300k 
HTTP_EQ_2     mp4        720x406    VF, Frz. Version 1500k 
HLS_MOBILE_2  m3u8       1280x720   VF, Frz. Version 2200k 
HTTP_SQ_2     mp4        1280x720   VF, Frz. Version 2200k 
HTTP_HQ_1     mp4        720x406    VA, Dt. Version  800k 
HTTP_MQ_1     mp4        384x216    VA, Dt. Version  300k 
HTTP_EQ_1     mp4        720x406    VA, Dt. Version 1500k 
HLS_MOBILE_1  m3u8       1280x720   VA, Dt. Version 2200k 
HTTP_SQ_1     mp4        1280x720   VA, Dt. Version 2200k  (best)
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Aug 7, 2015

Thanks @remitamine. Closing.

@yan12125 yan12125 closed this Aug 7, 2015
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
3 participants
You can’t perform that action at this time.