Processed requested changes

Instead of using find and replace, use the correct methods on URL to change the file name and extention.
This commit is contained in:
Tom Vos committed 2019-08-13 12:17:12 +02:00
1 parent 28ff3069ff
commit 48fc202f36
2 files changed
+10 -2

No files matched your search

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
+2 -2
View File
@@ -95,8 +95,8 @@ class ArchiveItem: CustomStringConvertible {
if let feedURLStr = infoPlist["SUFeedURL"] as? String {
feedURL = URL(string: feedURLStr);
if feedURL?.pathExtension == "php" {
let feedFileAndExtention = feedURL?.lastPathComponent + "." + feedURL?.pathExtension as? String
feedURL = URL(string: feedURL?.absoluteString.replacingOccurrences(of: feedFileAndExtention, with: "appcast.xml"))
feedURL?.deletingLastPathComponent()
feedURL?.appendingPathComponent("appcast.php")
}
}