lambdasoup / watchlater

Android app for adding videos to your Watch Later list
https://github.com/lambdasoup/watchlater
GNU General Public License v3.0
15 stars 1 forks source link

Improve error message: Video already in playlist #10

Closed strooooke closed 9 years ago

strooooke commented 9 years ago

Currently, on 403 the message "Your Watch Later playlist is either full or already contains this video" is shown. This is likely misleading, as the problem is an authorization problem in that case.

If the playlist actually contains the video already,

"error": {
"errors": [
{
"domain": "youtube.playlistItem",
"reason": "videoAlreadyInPlaylist",
"message": "Video already in playlist."
}
],
"code": 409,
"message": "Video already in playlist."
}
}

is returned. An appropriate message should be shown.