Fix URL/path confusion

Fixes #995
This commit is contained in:
Kornel Lesiński committed 2017-01-13 00:44:41 +00:00
1 parent 548908628f
commit fbb040926e
1 file changed
+1 -1
+1 -1
View File
@@ -100,7 +100,7 @@ class ArchiveItem: CustomStringConvertible {
var archiveURL: URL {
if let relative = self.feedURL {
return URL(string: self.archivePath.lastPathComponent, relativeTo: relative)!
return URL(fileURLWithPath: self.archivePath.lastPathComponent, relativeTo: relative)
}
return URL(string: self.archivePath.lastPathComponent)!
}