fix: Remove ports from shared YouTube links

Fix #619: Remove ports from shared YouTube links
This commit is contained in:
0x000C 2024-03-18 21:58:16 -07:00
parent cf5262a86e
commit 6ec516dc3d

View File

@ -117,6 +117,10 @@ extension VideosAPI {
urlComponents.host = frontendHost urlComponents.host = frontendHost
if frontendHost.contains("youtube.com") {
urlComponents.port = nil
}
var queryItems = [URLQueryItem]() var queryItems = [URLQueryItem]()
switch item.contentType { switch item.contentType {