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

    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)),
