-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
I am using below implementation to retrieve VideoInfosWithDownloadFormatsResponse:
func getVideoDownloadFormats(videoID: String) async {
let YTM = YouTubeModel()
let dataParameters: [HeadersList.AddQueryInfo.ContentTypes : String] = [
.query: videoID]
do {
let response = try await VideoInfosWithDownloadFormatsResponse.sendThrowingRequest(
youtubeModel: YTM,
data: dataParameters
)
for format in response.downloadFormats {
print("URL: \(format.url?.absoluteString ?? "nil"), Quality: \(format.mimeType)")
}
} catch {
print("❌ Failed to fetch formats: \(error)")
}
}
but it fails with below error:
❌ Failed to fetch formats: ResponseError(step: YouTubeKit.VideoInfosWithDownloadFormatsResponse.ResponseError.StepType.scrapPlayer, reason: "Could not get n-parameter function.")
Am i doing it right?
Metadata
Metadata
Assignees
Labels
No labels