Repository: yt-dlp/yt-dlp

Issue:
[Twitter] Tweets with Image and Video leads to infinite loop of webpage download
### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I remove or skip any mandatory\* field

### Checklist

- [X] I'm reporting a broken site
- [X] I've verified that I'm running yt-dlp version **2022.10.04** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/yt-dlp/yt-dlp/wiki/FAQ#video-url-contains-an-ampersand--and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [ ] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required

### Region

Germany

### Provide a description that is worded well enough to be understood

Twitter introduced the new capability to add an image AND a video into one tweet. If one tries to download such tweet via the current version of yt-dlp it causes an infinite loop of the same webpage download that either leads to a recursion depth exceeded error or to Twitter giving up because of too many requests as can be seen in the log. It would be great if support for such mixed-media tweets could be implemented.

Example tweet: <https://twitter.com/oshtru/status/1577855540407197696>


### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
[debug] Command-line config: ['-vU', 'https://twitter.com/oshtru/status/1577855540407197696']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8 (No ANSI), error utf-8 (No ANSI), screen utf-8 (No ANSI)
[debug] yt-dlp version 2022.10.04 [4e0511f] (zip)
[debug] Python 3.8.10 (CPython 64bit) - Linux-5.4.0-126-generic-x86_64-with-glibc2.29 (glibc 2.31)
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg 4.2.7, ffprobe 4.2.7
[debug] Optional libraries: certifi-2019.11.28, secretstorage-2.3.1, sqlite3-2.6.0
[debug] Proxy map: {}
[debug] Loaded 1690 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.10.04, Current version: 2022.10.04
yt-dlp is up to date (2022.10.04)
[debug] [twitter] Extracting URL: https://twitter.com/oshtru/status/1577855540407197696
[twitter] 1577855540407197696: Downloading guest token
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1577855540407197696
[twitter] 1577855540407197696: Downloading JSON metadata
ERROR: [twitter] 1577855540407197696: Unable to download JSON metadata: HTTP Error 429: Too Many Requests (caused by <HTTPError 429: 'Too Many Requests'>); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "./yt-dlp/yt_dlp/extractor/common.py", line 672, in extract
    ie_result = self._real_extract(url)
  File "./yt-dlp/yt_dlp/extractor/twitter.py", line 441, in _real_extract
    status = self._call_api(
  File "./yt-dlp/yt_dlp/extractor/twitter.py", line 100, in _call_api
    return self._download_json(
  File "./yt-dlp/yt_dlp/extractor/common.py", line 1032, in download_content
    res = getattr(self, download_handle.__name__)(url_or_request, video_id, **kwargs)
  File "./yt-dlp/yt_dlp/extractor/common.py", line 996, in download_handle
    res = self._download_webpage_handle(
  File "./yt-dlp/yt_dlp/extractor/common.py", line 866, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
  File "./yt-dlp/yt_dlp/extractor/common.py", line 823, in _request_webpage
    raise ExtractorError(errmsg, cause=err)

  File "./yt-dlp/yt_dlp/extractor/common.py", line 805, in _request_webpage
    return self._downloader.urlopen(self._create_request(url_or_request, data, headers, query))
  File "./yt-dlp/yt_dlp/YoutubeDL.py", line 3682, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.8/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/usr/lib/python3.8/urllib/request.py", line 640, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.8/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.8/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 429: Too Many Requests
```



Discussion:
somewhat related: https://github.com/yt-dlp/yt-dlp/issues/4752
The problem code is the [same as yt-dl](https://github.com/ytdl-org/youtube-dl/issues/31281#issuecomment-1270586444). Also, the extractor is happy to redirect to URL values that haven't been validated. Something like this is needed:
```diff
             else:
                 expanded_url = try_get(status, lambda x: x['entities']['urls'][0]['expanded_url'])
-                if not expanded_url:
-                    raise ExtractorError("There's no video in this tweet.")
-                info.update({
-                    '_type': 'url',
-                    'url': expanded_url,
-                })
+                if expanded_url and expanded_url != url:
+                    info.update(self.url_result(expanded_url, transparent=True))
+                    info['display_id'] = twid
+
+        if not (url_or_none(info.get('url')) or info.get('formats')):
+            raise ExtractorError('No video could be found in this tweet')
         return info
```


Resolving patch:
diff --git a/yt_dlp/extractor/twitter.py b/yt_dlp/extractor/twitter.py
--- a/yt_dlp/extractor/twitter.py
+++ b/yt_dlp/extractor/twitter.py
@@ -1,6 +1,7 @@
 import re
 
 from .common import InfoExtractor
+from .periscope import PeriscopeBaseIE, PeriscopeIE
 from ..compat import (
     compat_HTTPError,
     compat_parse_qs,
@@ -8,25 +9,22 @@
     compat_urllib_parse_urlparse,
 )
 from ..utils import (
-    dict_get,
     ExtractorError,
-    format_field,
+    dict_get,
     float_or_none,
+    format_field,
     int_or_none,
+    make_archive_id,
+    str_or_none,
+    strip_or_none,
     traverse_obj,
     try_get,
-    strip_or_none,
     unified_timestamp,
     update_url_query,
     url_or_none,
     xpath_text,
 )
 
-from .periscope import (
-    PeriscopeBaseIE,
-    PeriscopeIE,
-)
-
 
 class TwitterBaseIE(InfoExtractor):
     _API_BASE = 'https://api.twitter.com/1.1/'
@@ -85,7 +83,7 @@ def _search_dimensions_in_video_url(a_format, video_url):
 
     def _call_api(self, path, video_id, query={}):
         headers = {
-            'Authorization': 'Bearer AAAAAAAAAAAAAAAAAAAAAPYXBAAAAAAACLXUNDekMxqa8h%2F40K4moUkGsoc%3DTYfbDKbT3jJPCEVnMYqilB28NHfOPqkca3qaAxGfsyKCs0wRbw',
+            'Authorization': 'Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA',
         }
         token = self._get_cookies(self._API_BASE).get('ct0')
         if token:
@@ -202,7 +200,8 @@ class TwitterIE(TwitterBaseIE):
     _TESTS = [{
         'url': 'https://twitter.com/freethenipple/status/643211948184596480',
         'info_dict': {
-            'id': '643211948184596480',
+            'id': '643211870443208704',
+            'display_id': '643211948184596480',
             'ext': 'mp4',
             'title': 'FREE THE NIPPLE - FTN supporters on Hollywood Blvd today!',
             'thumbnail': r're:^https?://.*\.jpg',
@@ -213,6 +212,12 @@ class TwitterIE(TwitterBaseIE):
             'timestamp': 1442188653,
             'upload_date': '20150913',
             'age_limit': 18,
+            'uploader_url': 'https://twitter.com/freethenipple',
+            'comment_count': int,
+            'repost_count': int,
+            'like_count': int,
+            'tags': [],
+            'age_limit': 18,
         },
     }, {
         'url': 'https://twitter.com/giphz/status/657991469417025536/photo/1',
@@ -232,6 +237,7 @@ class TwitterIE(TwitterBaseIE):
         'url': 'https://twitter.com/starwars/status/665052190608723968',
         'info_dict': {
             'id': '665052190608723968',
+            'display_id': '665052190608723968',
             'ext': 'mp4',
             'title': 'Star Wars - A new beginning is coming December 18. Watch the official 60 second #TV spot for #StarWars: #TheForceAwakens.',
             'description': 'A new beginning is coming December 18. Watch the official 60 second #TV spot for #StarWars: #TheForceAwakens. https://t.co/OkSqT2fjWJ',
@@ -239,6 +245,12 @@ class TwitterIE(TwitterBaseIE):
             'uploader': 'Star Wars',
             'timestamp': 1447395772,
             'upload_date': '20151113',
+            'uploader_url': 'https://twitter.com/starwars',
+            'comment_count': int,
+            'repost_count': int,
+            'like_count': int,
+            'tags': ['TV', 'StarWars', 'TheForceAwakens'],
+            'age_limit': 0,
         },
     }, {
         'url': 'https://twitter.com/BTNBrentYarina/status/705235433198714880',
@@ -251,6 +263,12 @@ class TwitterIE(TwitterBaseIE):
             'uploader': 'Brent Yarina',
             'timestamp': 1456976204,
             'upload_date': '20160303',
+            'uploader_url': 'https://twitter.com/BTNBrentYarina',
+            'comment_count': int,
+            'repost_count': int,
+            'like_count': int,
+            'tags': [],
+            'age_limit': 0,
         },
         'params': {
             # The same video as https://twitter.com/i/videos/tweet/705235433198714880
@@ -260,16 +278,23 @@ class TwitterIE(TwitterBaseIE):
     }, {
         'url': 'https://twitter.com/jaydingeer/status/700207533655363584',
         'info_dict': {
-            'id': '700207533655363584',
+            'id': '700207414000242688',
+            'display_id': '700207533655363584',
             'ext': 'mp4',
-            'title': 'simon vertugo - BEAT PROD: @suhmeduh #Damndaniel',
+            'title': 'jaydin donte geer - BEAT PROD: @suhmeduh #Damndaniel',
             'description': 'BEAT PROD: @suhmeduh  https://t.co/HBrQ4AfpvZ #Damndaniel https://t.co/byBooq2ejZ',
             'thumbnail': r're:^https?://.*\.jpg',
-            'uploader': 'simon vertugo',
-            'uploader_id': 'simonvertugo',
+            'uploader': 'jaydin donte geer',
+            'uploader_id': 'jaydingeer',
             'duration': 30.0,
             'timestamp': 1455777459,
             'upload_date': '20160218',
+            'uploader_url': 'https://twitter.com/jaydingeer',
+            'comment_count': int,
+            'repost_count': int,
+            'like_count': int,
+            'tags': ['Damndaniel'],
+            'age_limit': 0,
         },
     }, {
         'url': 'https://twitter.com/Filmdrunk/status/713801302971588609',
@@ -282,12 +307,19 @@ class TwitterIE(TwitterBaseIE):
             'uploader_id': '1004126642786242560',
             'timestamp': 1402826626,
             'upload_date': '20140615',
+            'thumbnail': r're:^https?://.*\.jpg',
+            'alt_title': 'Vine by TAKUMA',
+            'comment_count': int,
+            'repost_count': int,
+            'like_count': int,
+            'view_count': int,
         },
         'add_ie': ['Vine'],
     }, {
         'url': 'https://twitter.com/captainamerica/status/719944021058060289',
         'info_dict': {
-            'id': '719944021058060289',
+            'id': '717462543795523584',
+            'display_id': '719944021058060289',
             'ext': 'mp4',
             'title': 'Captain America - @King0fNerd Are you sure you made the right choice? Find out in theaters.',
             'description': '@King0fNerd Are you sure you made the right choice? Find out in theaters. https://t.co/GpgYi9xMJI',
@@ -296,6 +328,13 @@ class TwitterIE(TwitterBaseIE):
             'duration': 3.17,
             'timestamp': 1460483005,
             'upload_date': '20160412',
+            'uploader_url': 'https://twitter.com/CaptainAmerica',
+            'thumbnail': r're:^https?://.*\.jpg',
+            'comment_count': int,
+            'repost_count': int,
+            'like_count': int,
+            'tags': [],
+            'age_limit': 0,
         },
     }, {
         'url': 'https://twitter.com/OPP_HSD/status/779210622571536384',
@@ -307,6 +346,7 @@ class TwitterIE(TwitterBaseIE):
             'uploader_id': '1PmKqpJdOJQoY',
             'uploader': 'Sgt Kerry Schmidt - Ontario Provincial Police',
             'timestamp': 1474613214,
+            'thumbnail': r're:^https?://.*\.jpg',
         },
         'add_ie': ['Periscope'],
     }, {
@@ -327,7 +367,8 @@ class TwitterIE(TwitterBaseIE):
     }, {
         'url': 'https://twitter.com/i/web/status/910031516746514432',
         'info_dict': {
-            'id': '910031516746514432',
+            'id': '910030238373089285',
+            'display_id': '910031516746514432',
             'ext': 'mp4',
             'title': 'Préfet de Guadeloupe - [Direct] #Maria Le centre se trouve actuellement au sud de Basse-Terre. Restez confinés. Réfugiez-vous dans la pièce la + sûre.',
             'thumbnail': r're:^https?://.*\.jpg',
@@ -337,6 +378,12 @@ class TwitterIE(TwitterBaseIE):
             'duration': 47.48,
             'timestamp': 1505803395,
             'upload_date': '20170919',
+            'uploader_url': 'https://twitter.com/Prefet971',
+            'comment_count': int,
+            'repost_count': int,
+            'like_count': int,
+            'tags': ['Maria'],
+            'age_limit': 0,
         },
         'params': {
             'skip_download': True,  # requires ffmpeg
@@ -345,7 +392,8 @@ class TwitterIE(TwitterBaseIE):
         # card via api.twitter.com/1.1/videos/tweet/config
         'url': 'https://twitter.com/LisPower1/status/1001551623938805763',
         'info_dict': {
-            'id': '1001551623938805763',
+            'id': '1001551417340022785',
+            'display_id': '1001551623938805763',
             'ext': 'mp4',
             'title': 're:.*?Shep is on a roll today.*?',
             'thumbnail': r're:^https?://.*\.jpg',
@@ -355,6 +403,12 @@ class TwitterIE(TwitterBaseIE):
             'duration': 111.278,
             'timestamp': 1527623489,
             'upload_date': '20180529',
+            'uploader_url': 'https://twitter.com/LisPower1',
+            'comment_count': int,
+            'repost_count': int,
+            'like_count': int,
+            'tags': [],
+            'age_limit': 0,
         },
         'params': {
             'skip_download': True,  # requires ffmpeg
@@ -362,7 +416,8 @@ class TwitterIE(TwitterBaseIE):
     }, {
         'url': 'https://twitter.com/foobar/status/1087791357756956680',
         'info_dict': {
-            'id': '1087791357756956680',
+            'id': '1087791272830607360',
+            'display_id': '1087791357756956680',
             'ext': 'mp4',
             'title': 'Twitter - A new is coming.  Some of you got an opt-in to try it now. Check out the emoji button, quick keyboard shortcuts, upgraded trends, advanced search, and more. Let us know your thoughts!',
             'thumbnail': r're:^https?://.*\.jpg',
@@ -372,6 +427,12 @@ class TwitterIE(TwitterBaseIE):
             'duration': 61.567,
             'timestamp': 1548184644,
             'upload_date': '20190122',
+            'uploader_url': 'https://twitter.com/Twitter',
+            'comment_count': int,
+            'repost_count': int,
+            'like_count': int,
+            'tags': [],
+            'age_limit': 0,
         },
     }, {
         # not available in Periscope
@@ -382,13 +443,17 @@ class TwitterIE(TwitterBaseIE):
             'title': 'Vivi - Vivi founder @lior_rauchy announcing our new student feedback tool live at @EduTECH_AU #EduTECH2019',
             'uploader': 'Vivi',
             'uploader_id': '1eVjYOLGkGrQL',
+            'thumbnail': r're:^https?://.*\.jpg',
+            'tags': ['EduTECH2019'],
+            'view_count': int,
         },
         'add_ie': ['TwitterBroadcast'],
     }, {
         # unified card
         'url': 'https://twitter.com/BrooklynNets/status/1349794411333394432?s=20',
         'info_dict': {
-            'id': '1349794411333394432',
+            'id': '1349774757969989634',
+            'display_id': '1349794411333394432',
             'ext': 'mp4',
             'title': 'md5:d1c4941658e4caaa6cb579260d85dcba',
             'thumbnail': r're:^https?://.*\.jpg',
@@ -398,10 +463,57 @@ class TwitterIE(TwitterBaseIE):
             'duration': 324.484,
             'timestamp': 1610651040,
             'upload_date': '20210114',
+            'uploader_url': 'https://twitter.com/BrooklynNets',
+            'comment_count': int,
+            'repost_count': int,
+            'like_count': int,
+            'tags': [],
+            'age_limit': 0,
         },
         'params': {
             'skip_download': True,
         },
+    }, {
+        'url': 'https://twitter.com/oshtru/status/1577855540407197696',
+        'info_dict': {
+            'id': '1577855447914409984',
+            'display_id': '1577855540407197696',
+            'ext': 'mp4',
+            'title': 'oshtru \U0001faac\U0001f47d - gm \u2728\ufe0f now I can post image and video. nice update.',
+            'description': 'gm \u2728\ufe0f now I can post image and video. nice update. https://t.co/cG7XgiINOm',
+            'upload_date': '20221006',
+            'uploader': 'oshtru \U0001faac\U0001f47d',
+            'uploader_id': 'oshtru',
+            'uploader_url': 'https://twitter.com/oshtru',
+            'thumbnail': r're:^https?://.*\.jpg',
+            'duration': 30.03,
+            'timestamp': 1665025050.0,
+            'comment_count': int,
+            'repost_count': int,
+            'like_count': int,
+            'tags': [],
+            'age_limit': 0,
+        },
+        'params': {'skip_download': True},
+    }, {
+        'url': 'https://twitter.com/UltimaShadowX/status/1577719286659006464',
+        'info_dict': {
+            'id': '1577719286659006464',
+            'title': 'Ultima | #\u0432\u029f\u043c - Test',
+            'description': 'Test https://t.co/Y3KEZD7Dad',
+            'uploader': 'Ultima | #\u0432\u029f\u043c',
+            'uploader_id': 'UltimaShadowX',
+            'uploader_url': 'https://twitter.com/UltimaShadowX',
+            'upload_date': '20221005',
+            'timestamp': 1664992565.0,
+            'comment_count': int,
+            'repost_count': int,
+            'like_count': int,
+            'tags': [],
+            'age_limit': 0,
+        },
+        'playlist_count': 4,
+        'params': {'skip_download': True},
     }, {
         # Twitch Clip Embed
         'url': 'https://twitter.com/GunB1g/status/1163218564784017422',
@@ -479,6 +591,8 @@ def _real_extract(self, url):
         }
 
         def extract_from_video_info(media):
+            media_id = traverse_obj(media, 'id_str', 'id', expected_type=str_or_none)
+            self.write_debug(f'Extracting from video info: {media_id}')
             video_info = media.get('video_info') or {}
 
             formats = []
@@ -503,90 +617,107 @@ def add_thumbnail(name, size):
                     add_thumbnail(name, size)
                 add_thumbnail('orig', media.get('original_info') or {})
 
-            info.update({
+            return {
+                'id': media_id,
                 'formats': formats,
                 'subtitles': subtitles,
                 'thumbnails': thumbnails,
                 'duration': float_or_none(video_info.get('duration_millis'), 1000),
-            })
+            }
 
-        media = traverse_obj(status, ((None, 'quoted_status'), 'extended_entities', 'media', 0), get_all=False)
-        if media and media.get('type') != 'photo':
-            extract_from_video_info(media)
-        else:
-            card = status.get('card')
-            if card:
-                binding_values = card['binding_values']
-
-                def get_binding_value(k):
-                    o = binding_values.get(k) or {}
-                    return try_get(o, lambda x: x[x['type'].lower() + '_value'])
-
-                card_name = card['name'].split(':')[-1]
-                if card_name == 'player':
-                    info.update({
-                        '_type': 'url',
-                        'url': get_binding_value('player_url'),
-                    })
-                elif card_name == 'periscope_broadcast':
-                    info.update({
-                        '_type': 'url',
-                        'url': get_binding_value('url') or get_binding_value('player_url'),
-                        'ie_key': PeriscopeIE.ie_key(),
-                    })
-                elif card_name == 'broadcast':
-                    info.update({
-                        '_type': 'url',
-                        'url': get_binding_value('broadcast_url'),
-                        'ie_key': TwitterBroadcastIE.ie_key(),
-                    })
-                elif card_name == 'summary':
-                    info.update({
-                        '_type': 'url',
-                        'url': get_binding_value('card_url'),
-                    })
-                elif card_name == 'unified_card':
-                    media_entities = self._parse_json(get_binding_value('unified_card'), twid)['media_entities']
-                    extract_from_video_info(next(iter(media_entities.values())))
-                # amplify, promo_video_website, promo_video_convo, appplayer,
-                # video_direct_message, poll2choice_video, poll3choice_video,
-                # poll4choice_video, ...
-                else:
-                    is_amplify = card_name == 'amplify'
-                    vmap_url = get_binding_value('amplify_url_vmap') if is_amplify else get_binding_value('player_stream_url')
-                    content_id = get_binding_value('%s_content_id' % (card_name if is_amplify else 'player'))
-                    formats, subtitles = self._extract_formats_from_vmap_url(vmap_url, content_id or twid)
-                    self._sort_formats(formats)
-
-                    thumbnails = []
-                    for suffix in ('_small', '', '_large', '_x_large', '_original'):
-                        image = get_binding_value('player_image' + suffix) or {}
-                        image_url = image.get('url')
-                        if not image_url or '/player-placeholder' in image_url:
-                            continue
-                        thumbnails.append({
-                            'id': suffix[1:] if suffix else 'medium',
-                            'url': image_url,
-                            'width': int_or_none(image.get('width')),
-                            'height': int_or_none(image.get('height')),
-                        })
-
-                    info.update({
-                        'formats': formats,
-                        'subtitles': subtitles,
-                        'thumbnails': thumbnails,
-                        'duration': int_or_none(get_binding_value(
-                            'content_duration_seconds')),
-                    })
-            else:
-                expanded_url = try_get(status, lambda x: x['entities']['urls'][0]['expanded_url'])
-                if not expanded_url:
-                    raise ExtractorError("There's no video in this tweet.")
-                info.update({
+        def extract_from_card_info(card):
+            if not card:
+                return
+
+            self.write_debug(f'Extracting from card info: {card.get("url")}')
+            binding_values = card['binding_values']
+
+            def get_binding_value(k):
+                o = binding_values.get(k) or {}
+                return try_get(o, lambda x: x[x['type'].lower() + '_value'])
+
+            card_name = card['name'].split(':')[-1]
+            if card_name == 'player':
+                return {
                     '_type': 'url',
-                    'url': expanded_url,
-                })
-        return info
+                    'url': get_binding_value('player_url'),
+                }
+            elif card_name == 'periscope_broadcast':
+                return {
+                    '_type': 'url',
+                    'url': get_binding_value('url') or get_binding_value('player_url'),
+                    'ie_key': PeriscopeIE.ie_key(),
+                }
+            elif card_name == 'broadcast':
+                return {
+                    '_type': 'url',
+                    'url': get_binding_value('broadcast_url'),
+                    'ie_key': TwitterBroadcastIE.ie_key(),
+                }
+            elif card_name == 'summary':
+                return {
+                    '_type': 'url',
+                    'url': get_binding_value('card_url'),
+                }
+            elif card_name == 'unified_card':
+                media_entities = self._parse_json(get_binding_value('unified_card'), twid)['media_entities']
+                media = traverse_obj(media_entities, ..., expected_type=dict, get_all=False)
+                return extract_from_video_info(media)
+            # amplify, promo_video_website, promo_video_convo, appplayer,
+            # video_direct_message, poll2choice_video, poll3choice_video,
+            # poll4choice_video, ...
+            else:
+                is_amplify = card_name == 'amplify'
+                vmap_url = get_binding_value('amplify_url_vmap') if is_amplify else get_binding_value('player_stream_url')
+                content_id = get_binding_value('%s_content_id' % (card_name if is_amplify else 'player'))
+                formats, subtitles = self._extract_formats_from_vmap_url(vmap_url, content_id or twid)
+                self._sort_formats(formats)
+
+                thumbnails = []
+                for suffix in ('_small', '', '_large', '_x_large', '_original'):
+                    image = get_binding_value('player_image' + suffix) or {}
+                    image_url = image.get('url')
+                    if not image_url or '/player-placeholder' in image_url:
+                        continue
+                    thumbnails.append({
+                        'id': suffix[1:] if suffix else 'medium',
+                        'url': image_url,
+                        'width': int_or_none(image.get('width')),
+                        'height': int_or_none(image.get('height')),
+                    })
+
+                return {
+                    'formats': formats,
+                    'subtitles': subtitles,
+                    'thumbnails': thumbnails,
+                    'duration': int_or_none(get_binding_value(
+                        'content_duration_seconds')),
+                }
+
+        media_path = ((None, 'quoted_status'), 'extended_entities', 'media', lambda _, m: m['type'] != 'photo')
+        videos = map(extract_from_video_info, traverse_obj(status, media_path, expected_type=dict))
+        entries = [{**info, **data, 'display_id': twid} for data in videos if data]
+
+        data = extract_from_card_info(status.get('card'))
+        if data:
+            entries.append({**info, **data, 'display_id': twid})
+
+        if not entries:
+            expanded_url = traverse_obj(status, ('entities', 'urls', 0, 'expanded_url'), expected_type=url_or_none)
+            if not expanded_url or expanded_url == url:
+                raise ExtractorError('No video could be found in this tweet', expected=True)
+
+            return self.url_result(expanded_url, display_id=twid, **info)
+
+        entries[0]['_old_archive_ids'] = [make_archive_id(self, twid)]
+
+        if len(entries) == 1:
+            return entries[0]
+
+        for index, entry in enumerate(entries, 1):
+            entry['title'] += f' #{index}'
+
+        return self.playlist_result(entries, **info)
 
 
 class TwitterAmplifyIE(TwitterBaseIE):


Test patch: