         return cell
     }
     
+    override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
+        self.rc.jsonRpcCall("Player.Open", params: "{\"item\":{\"file\":\"\(self.episodeFiles[indexPath.row])\"}}"){ (response: AnyObject?) in
+        }
+    }
+    
     func downloadImage(url: NSURL, imageURL: UIImageView){
         getImageDataFromUrl(url) { (data, response, error)  in
             dispatch_async(dispatch_get_main_queue()) { () -> Void in

        self.navigationItem.title = seasonName
        
        self.rc = RemoteCalls(ipaddress: global_ipaddress, port: global_port)
        self.rc.jsonRpcCall("VideoLibrary.GetEpisodes", params: "{\"tvshowid\":\(tvshow_id),\"season\":\(season), \"properties\":[\"title\",\"thumbnail\",\"firstaired\",\"runtime\",\"episode\"]}"){(response: AnyObject?) in
            
            self.generateSeasonResponse(response as! NSDictionary)
            

    var episodeImages = [String]()
    var episodeTitles = [String]()
    var episodeNumbers = [String]()
    var episodeFiles = [String]()
    var runtimes = [String]()
    var episodesAired = [String]()
    var imageCache = [String:UIImage]()
