← All changes
|
templates/partials/single-trip/content-itinerary.php
+1
-1
3.0.5
→
3.0.17
View file →
| @@ -282,9 +282,9 @@ | ||
| 282 | 282 | |
| 283 | 283 | // Extract video ID and thumbnail |
| 284 | 284 | if (strpos($video_url, 'youtube.com') !== false || strpos($video_url, 'youtu.be') !== false) { |
| 285 | 285 | // YouTube thumbnail extraction |
| 286 | - preg_match('/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/)([^&\n?#]+)/', $video_url, $matches); | |
| 286 | + preg_match('/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/|youtube\.com\/shorts\/|youtube\.com\/live\/)([^&\n?#\/]+)/', $video_url, $matches); | |
| 287 | 287 | $video_id = $matches[1] ?? ''; |
| 288 | 288 | $thumbnail_url = "https://img.youtube.com/vi/{$video_id}/maxresdefault.jpg"; |
| 289 | 289 | } elseif (strpos($video_url, 'vimeo.com') !== false) { |
| 290 | 290 | // Vimeo thumbnail extraction |