title: URLs of Media Bought on iTunes
body: <p>I have created an application that gets all of the songs on a device, puts some of their information in a UITableView, then plays a song of a selected cell using an AVAudioPlayer. For some reason however, it seems as though three of the songs on my device do not have urls. These songs were more recently bought, perhaps in the last two months. See the code below.</p>
  
  <pre><code>//get all the songs
  var songsList: [MPMediaItem] = MPMediaQuery.songsQuery().items!
  
   if let url = song.valueForProperty(MPMediaItemPropertyAssetURL) as! NSURL? {
              self.player = try! AVAudioPlayer(contentsOfURL: url)
              let playing: Bool = player.play()
              print("The audio play status: " + String(playing))
          }
          else {
              print("Failed to cast to URL")
          }
  </code></pre>
  
  <p>For some reason, these three songs fail the type cast from AnyObject? to NSURL? meaning that the url must not exist on the device? I do not understand. My only guess is that I bought them from iTunes on another Macintosh device and they were stored on there via some cloud transfer through my iTunes account. Any explanation would be a great help. </p>