diff --git a/src/ExtractorFactory.php b/src/ExtractorFactory.php index 846e1b39..55624f6c 100644 --- a/src/ExtractorFactory.php +++ b/src/ExtractorFactory.php @@ -30,6 +30,7 @@ class ExtractorFactory 'twitch.tv' => Adapters\Twitch\Extractor::class, 'bandcamp.com' => Adapters\Bandcamp\Extractor::class, 'twitter.com' => Adapters\Twitter\Extractor::class, + 'x.com' => Adapters\Twitter\Extractor::class, ]; private array $customDetectors = []; private array $settings; diff --git a/src/resources/oembed.php b/src/resources/oembed.php index 8ddd6f48..ead747af 100644 --- a/src/resources/oembed.php +++ b/src/resources/oembed.php @@ -1098,6 +1098,9 @@ '|^https?://twitter\\.com/.*$|i', '|^https?://twitter\\.com/.*/status/.*$|i', '|^https?://.*\\.twitter\\.com/.*/status/.*$|i', + '|^https?://x\\.com/.*$|i', + '|^https?://x\\.com/.*/status/.*$|i', + '|^https?://.*\\.x\\.com/.*/status/.*$|i', ], 'https://play.typecast.ai/oembed' => [ '|^https?://play\\.typecast\\.ai/s/.*$|i',