mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-02 03:56:55 +01:00
Fix favicons when a feed's homepage URL has non-ASCII in its path
This commit is contained in:
parent
cc19b6b13e
commit
8911627a67
@ -200,7 +200,7 @@ private extension FaviconDownloader {
|
|||||||
|
|
||||||
func findFaviconURLs(with homePageURL: String, _ completion: @escaping ([String]?) -> Void) {
|
func findFaviconURLs(with homePageURL: String, _ completion: @escaping ([String]?) -> Void) {
|
||||||
|
|
||||||
guard let url = URL(string: homePageURL) else {
|
guard let url = URL(unicodeString: homePageURL) else {
|
||||||
completion(nil)
|
completion(nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ struct FaviconURLFinder {
|
|||||||
/// - urls: An array of favicon URLs as strings.
|
/// - urls: An array of favicon URLs as strings.
|
||||||
static func findFaviconURLs(with homePageURL: String, _ completion: @escaping (_ urls: [String]?) -> Void) {
|
static func findFaviconURLs(with homePageURL: String, _ completion: @escaping (_ urls: [String]?) -> Void) {
|
||||||
|
|
||||||
guard let _ = URL(string: homePageURL) else {
|
guard let _ = URL(unicodeString: homePageURL) else {
|
||||||
completion(nil)
|
completion(nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@ struct HTMLMetadataDownloader {
|
|||||||
static let serialDispatchQueue = DispatchQueue(label: "HTMLMetadataDownloader")
|
static let serialDispatchQueue = DispatchQueue(label: "HTMLMetadataDownloader")
|
||||||
|
|
||||||
static func downloadMetadata(for url: String, _ completion: @escaping (RSHTMLMetadata?) -> Void) {
|
static func downloadMetadata(for url: String, _ completion: @escaping (RSHTMLMetadata?) -> Void) {
|
||||||
guard let actualURL = URL(string: url) else {
|
guard let actualURL = URL(unicodeString: url) else {
|
||||||
completion(nil)
|
completion(nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user