arte.tv format code is not unique #1325

Closed
opened 2026-02-20 23:25:58 -05:00 by deekerman · 2 comments
Owner

Originally created by @Cigaes on GitHub (Nov 8, 2013).

./youtube-dl --list-formats http://www.arte.tv/guide/fr/047910-003/top-of-the-lake-3-6
[arte.tv:+7] 047910-003: Downloading webpage
[arte.tv:+7] 047910-003: Downloading info json
[arte.tv:+7] 047910-003: Extracting information
[info] Available formats for 047910-003_PLUS7-F:
format code    extension resolution  note
220-VF-STF     flv       320x200     VF (worst)
220-VO-STF     flv       320x200     VOSTF
220-VF-STMF    flv       320x200     ST sourds/mal
400-VF-STF     mp4       640x360     VF
400-VO-STF     mp4       640x360     VOSTF
400-VF-STMF    mp4       640x360     ST sourds/mal
400-VO-STF     flv       720x406     VOSTF
400-VF-STF     flv       720x406     VF
400-VF-STF     flv       720x406     VF
400-VF-STMF    flv       720x406     ST sourds/mal
400-VF-STMF    flv       720x406     ST sourds/mal
400-VO-STF     flv       720x406     VOSTF
720-VF-STF     flv       1280x720    VF
720-VO-STF     flv       1280x720    VOSTF
720-VF-STMF    flv       1280x720    ST sourds/mal (best)

You can notice that the 400-* codes appear each three times, once for 640×360 mp4 and twice for 720×406 flv (they differ in bitrate: 800 and 1500 announced IIRC).

Suggested fix: include the bitrate in the format code:

format_id = u'%s-%s-%s' % (quality, format_info['bitrate'], format_info['versionCode'])

By the way, thanks a lot for implementing the format selection feature!

Originally created by @Cigaes on GitHub (Nov 8, 2013). ``` ./youtube-dl --list-formats http://www.arte.tv/guide/fr/047910-003/top-of-the-lake-3-6 [arte.tv:+7] 047910-003: Downloading webpage [arte.tv:+7] 047910-003: Downloading info json [arte.tv:+7] 047910-003: Extracting information [info] Available formats for 047910-003_PLUS7-F: format code extension resolution note 220-VF-STF flv 320x200 VF (worst) 220-VO-STF flv 320x200 VOSTF 220-VF-STMF flv 320x200 ST sourds/mal 400-VF-STF mp4 640x360 VF 400-VO-STF mp4 640x360 VOSTF 400-VF-STMF mp4 640x360 ST sourds/mal 400-VO-STF flv 720x406 VOSTF 400-VF-STF flv 720x406 VF 400-VF-STF flv 720x406 VF 400-VF-STMF flv 720x406 ST sourds/mal 400-VF-STMF flv 720x406 ST sourds/mal 400-VO-STF flv 720x406 VOSTF 720-VF-STF flv 1280x720 VF 720-VO-STF flv 1280x720 VOSTF 720-VF-STMF flv 1280x720 ST sourds/mal (best) ``` You can notice that the `400-*` codes appear each three times, once for 640×360 mp4 and twice for 720×406 flv (they differ in bitrate: 800 and 1500 announced IIRC). Suggested fix: include the bitrate in the format code: ``` format_id = u'%s-%s-%s' % (quality, format_info['bitrate'], format_info['versionCode']) ``` By the way, thanks a lot for implementing the format selection feature!
deekerman 2026-02-20 23:25:58 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@jaimeMF commented on GitHub (Nov 9, 2013):

Fixed, thanks for the report.

@jaimeMF commented on GitHub (Nov 9, 2013): Fixed, thanks for the report.
Author
Owner

@Cigaes commented on GitHub (Nov 9, 2013):

Thanks a lot.

@Cigaes commented on GitHub (Nov 9, 2013): Thanks a lot.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl-ytdl-org#1325
No description provided.