From 1c7da30caffeddf6fae843c3924f7e9a6e1097ba Mon Sep 17 00:00:00 2001 From: 0x000C <44306472+0x000C@users.noreply.github.com> Date: Mon, 18 Mar 2024 21:58:16 -0700 Subject: [PATCH] fix: Remove ports from shared YouTube links --- Model/Applications/VideosAPI.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Model/Applications/VideosAPI.swift b/Model/Applications/VideosAPI.swift index b84b3c64..ee9e0fbe 100644 --- a/Model/Applications/VideosAPI.swift +++ b/Model/Applications/VideosAPI.swift @@ -117,6 +117,10 @@ extension VideosAPI { urlComponents.host = frontendHost + if frontendHost.contains("youtube.com") { + urlComponents.port = nil + } + var queryItems = [URLQueryItem]() switch item.contentType {