 public struct SomaAPI {
     static var channels: [Channel]? {
         didSet {
+            print("SomaAPI: channels updated")
             NotificationCenter.default.post(name: .somaApiChannelsUpdated, object: nil)
         }
     }

    static let channelsURL = URL(string: "https://api.somafm.com/channels.json")!

    static func loadChannelsFromAPI() {
        let session = URLSession(configuration: URLSessionConfiguration.default)
        let request = URLRequest(url: channelsURL)


        do {
            let data = try JSONEncoder().encode(channelsToSave)
            try data.write(to: url, options: [])
            UserDefaults.standard.set(Date(), forKey: "SomaAPI.Cache.Timestamp")
        } catch {
            print("SomaAPI: Error saving channels to disk")
        }
