b5i / YouTubeKit

A way to interact with YouTube's API in Swift (without any API key!)
https://swiftpackageindex.com/b5i/YouTubeKit
MIT License
74 stars 8 forks source link

HomeScreenResponse empty result #25

Closed 666bsw closed 3 months ago

666bsw commented 3 months ago

Hello! how to get home screen correctly?

let result = try await HomeScreenResponse.sendThrowingRequest(youtubeModel: YTM, data: [.])

I get an empty result.

b5i commented 3 months ago

Hello! YouTube stopped providing videos from the Home Screen a few months ago and you need to provide cookies to the YouTubeModel for it to work (you can do the test yourself by opening a private browsing window and go to their website). I'm going to add the trending videos requests soon and that might replace the HomeScreenResponse.