Repository: youtube-dl
Issue: Streamable.com reports two formats, only one gets downloaded
Labels: bug

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2024.12.17. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that all URLs and arguments with special characters are properly quoted or escaped as explained in http://yt-dl.org/escape.
- Search the bugtracker for similar issues: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x ] I'm reporting a broken site support
- [x ] I've verified that I'm running youtube-dl version **2024.12.17**
- [x ] I've checked that all provided URLs are alive and playable in a browser
- [x ] I've checked that all URLs and arguments with special characters are properly quoted or escaped
- [x ] I've searched the bugtracker for similar issues including closed ones


## Verbose log

<!--
Provide the complete verbose output of youtube-dl that clearly demonstrates the problem.
Add the `-v` flag to your command line you run youtube-dl with (`youtube-dl -v <your command line>`), copy the WHOLE output and insert it below. It should look similar to this:
 [debug] System config: []
 [debug] User config: []
 [debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj']
 [debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
 [debug] youtube-dl version 2021.12.17
 [debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2
 [debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4
 [debug] Proxy map: {}
 <more lines>
-->


## Description

Streamable.com reports two formats, only one gets downloaded.

Streamable reports two formats, only one gets downloaded - bottom one.
It happens when they are reported in this, particular order: 'mp4, mp4-mobile'.

```
$ youtube-dl --version
youtube-dl 2024.12.17
$ youtube-dl -F https://streamable.com/fh3uim
[Streamable] fh3uim: Downloading JSON metadata
[info] Available formats for fh3uim:
format code  extension  resolution note
mp4          mp4        460x612     321k, 30fps, 4.61MiB
mp4-mobile   mp4        359x478     383k, 30fps, 5.49MiB (best)

$ youtube-dl -f mp4 -o fh3uim.mp4 https://streamable.com/fh3uim
[Streamable] fh3uim: Downloading JSON metadata
[download] Destination: fh3uim.mp4
[download] 100% of 5.49MiB in 00:07

$ youtube-dl -f mp4-mobile -o fh3uim.mp4-mobile https://streamable.com/fh3uim
[Streamable] fh3uim: Downloading JSON metadata
[download] Destination: fh3uim.mp4-mobile
[download] 100% of 5.49MiB in 00:17

$ wc -c fh3uim.mp4*
 5759085 fh3uim.mp4
 5759085 fh3uim.mp4-mobile

```

Checked with other videos (id: 315u24, 2fu687) and the result is the same.

Funny thing is - it's not always the case, like for these: 62pbzs, bibj5o, work fine.
This time the formats are reported as 'mp4-mobile, mp4', and they both get downloaded.

```
$ youtube-dl -F https://streamable.com/bibj5o
[Streamable] bibj5o: Downloading JSON metadata
[info] Available formats for bibj5o:
format code  extension  resolution note
mp4-mobile   mp4        639x358     699k, 30fps, 5.25MiB
mp4          mp4        828x464    1046k, 30fps, 7.85MiB (best)

$ youtube-dl -f mp4 -o bibj5o.mp4 https://streamable.com/bibj5o
[Streamable] bibj5o: Downloading JSON metadata
[download] Destination: bibj5o.mp4
[download] 100% of 7.85MiB in 00:18

$ youtube-dl -f mp4-mobile -o bibj5o.mp4-mobile https://streamable.com/bibj5o
[Streamable] bibj5o: Downloading JSON metadata
[download] Destination: bibj5o.mp4-mobile
[download] 100% of 5.25MiB in 00:08

$ wc -c bibj5o.mp4*
 8228271 bibj5o.mp4
 5503856 bibj5o.mp4-mobile
```

It may not be our fault. If so, feel free to close it without notice.