title: Get metadata from mp3 file with URL (swift)
body: <p>I'm new in swift and i would like to get data from a mp3 file located on a server, ( i used an URL, exemple : <a href="http://myserver.eu/file.mp3" rel="nofollow">http://myserver.eu/file.mp3</a> ). </p>
  
  <p>i used some tuto, like <a href="http://geekyviney.blogspot.com/2015/02/extracting-data-like-thumbnail-images.html" rel="nofollow">http://geekyviney.blogspot.com/2015/02/extracting-data-like-thumbnail-images.html</a> ( it's working with a local file and i'm trying to make it work with a file from an url)
  i got a exception : 
  Thread 1: EXC_BAD_INSTRUCTION(code=EXC_I1386_INVOP, subcode=0x0</p>
  
  <p>fatal error: unexpectedly found nil while unwrapping an Optional value (lldb)</p>
  
  <p>I suppose that pathForResource is only for local file ? thanks for your help</p>
  
  <pre><code>var filePath = NSBundle.mainBundle().pathForResource("http://servername.eu/filename", ofType: "mp3")
          var fileUrl = NSURL(fileURLWithPath: filePath!)
          var asset = AVAsset.assetWithURL(fileUrl) as AVAsset
  </code></pre>