From 6ec516dc3d6568ceb0a012526c32d248845cbe70 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 Fix #619: 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 {