                 self.movieOverview.text = selectedMovie.movieOverview
                 self.movieYear.text = String(describing: selectedMovie.movieYear)
                 
-                //TODO обработать кадры и постер
                 self.moviePoster.sd_setImage(with: URL.init(string: selectedMovie.moviePoster))
                 
                 currentSelectedMovie = selectedMovie
+                
+                frameCounter = 0
                 
                 self.tableView.reloadData()
                 

        print("testFrame")
        
        var cell = collectionView.dequeueReusableCell(withReuseIdentifier: "Cell", for: indexPath) as! FrameCollectionViewCell
        var frameCounter : Int = 0
        if ((isMoviesDataDownloaded == true) && (currentSelectedMovie.framesURLs.count != 0)) {
            
            print(currentSelectedMovie.framesURLs[frameCounter])
            
            cell.frameInit(sringUrl: currentSelectedMovie.framesURLs[frameCounter])
            frameCounter += 1
        }
        
        //cell.backgroundColor = UIColor.black

    /// Текущий выбранный фильм
    private var currentSelectedMovie : Movie = Movie.init()
    
    private var frameCounter : Int = 0
    
    @IBAction func cancelSettingsToMainMenu(segue:UIStoryboardSegue) {
    }
    
