Small fixes and some tweaks.

This commit is contained in:
Damiano Galassi committed 2017-08-05 14:43:04 +02:00
1 parent 2404a15ff0
commit daa41aad63
3 files changed
+15 -6

No files matched your search

+1 -1
View File
@@ -456,7 +456,7 @@ public struct iTunesStore: MetadataService {
if let nodes = try? xml.nodes(forXPath: "//li[@class='copyright']") {
for node in nodes {
if var copyright = node.stringValue {
if let range = copyright.range(of: ". All Rights Reserved.", options: .caseInsensitive,
if let range = copyright.range(of: ". All Rights Reserved", options: .caseInsensitive,
range: copyright.startIndex ..< copyright.endIndex, locale: nil) {
copyright.removeSubrange(range)
}