     return data
   }
 
-  public func getEpisodes(_ playlistUrl: String, path: String) throws -> [Episode] {
+  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)),


            if let result = try? decoder.decode(PlayList.self, from: localizedData) {
              for item in result.playlist {
                list = buildEpisodes(item.playlist)
              }
            }
            else if let result = try? decoder.decode(SingleSeasonPlayList.self, from: localizedData) {
              list = buildEpisodes(result.playlist)
            }
          }
        }

    var newMovies = [Any]()

    for var movie in movies as! [[String: String]] {
      movie["type"] = "serie"

      newMovies.append(movie)
    }

    return newMovies
