Closed derech1e closed 4 years ago
I've been doing some testing on this, and you can't differentiate between a playlist that is private, and a playlist that doesn't exist. In both cases, the response returned is 400 : Bad Request
.
I could still improve the error message to say something along the lines of "This playlist cannot be found. It either does not exist, or is private." Would that be acceptable?
I'm thinking that I could mimic the implementation and usage of VideoUnavailableException
.
Yeah, that message would be fine. The problem currently is that 400 is automatically handled by YoutubeHttpClient
here:
You would either need to change PlaylistResponse.GetAsync()
so that it passes ensureSuccess = false
and checks everything itself or maybe rework this automatic error handling so it can work well in both scenarios.
I was thinking the same thing. I think I'll probably go the route of passing ensureSuccess = false
. I imagine that reworking that automatic error handling will have wide-reaching effects.
Hey. The idea is to get a more detailed error message, of the fail reason from the download. For example, in the case of a private playlists, simply return a response that indicate that.
Youtube already has this feature:
It would be very nice. Thank you!