     var newMovies = [Any]()
 
     for var movie in movies as! [[String: String]] {
-      if let type = movie["type"] {
-        movie["type"] = "serie"
-
-        newMovies.append(movie)
-      }
+      movie["type"] = "serie"
+
+      newMovies.append(movie)
     }
 
     return newMovies

    return list
  }

  func buildEpisodes(_ playlist: [Episode]) -> [Episode] {
    var episodes: [Episode] = []

    for item in playlist {
      let filesStr = item.file.components(separatedBy: ",")

      var files: [String] = []

      for item in filesStr {
        if !item.isEmpty {
          files.append(item)
        }
      }

      episodes.append(Episode(comment: item.comment, file: item.file, files: files))
    }

    return episodes

    return data
  }

  public func getEpisodes(_ playlistUrl: String, path: String, page: Int=0, pageSize: Int=0) throws -> [Episode] {
    var list: [Episode] = []

    if let data = fetchData(playlistUrl, headers: getHeaders(path)),
