Update send to feature to send to TV app on 10.15.

This commit is contained in:
Damiano Galassi committed 2019-10-15 08:34:35 +02:00
1 parent 6bb26182ba
commit dbe5080541
9 files changed
+112 -77

No files matched your search

+23 -10
View File
@@ -138,16 +138,29 @@ final public class TheTVDBService {
public var languages: [String] {
get {
if let result = savedLanguages, result.data.isEmpty == false {
return result.data
}
else if let result = fetchLanguages() {
savedLanguages = result
UserDefaults.standard.set(result.data, forKey: "SBTheTVBDLanguagesArray")
UserDefaults.standard.set(result.timestamp, forKey: "SBTheTVBDLanguagesArrayTimestamp")
return result.data
}
return ["en"]
return ["en",
"sv",
"no",
"da",
"fi",
"nl",
"de",
"it",
"es",
"fr",
"pl",
"hu",
"el",
"tr",
"ru",
"he",
"ja",
"pt",
"zh",
"cs",
"sl",
"hr",
"ko"]
}
}