mirror of
https://github.com/yattee/yattee.git
synced 2024-11-10 00:08:21 +00:00
fix: Remove ports from shared YouTube links
This commit is contained in:
parent
cf5262a86e
commit
1c7da30caf
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user