Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlalistThumbnail gives null #26

Open
rplabon opened this issue Sep 13, 2017 · 1 comment
Open

PlalistThumbnail gives null #26

rplabon opened this issue Sep 13, 2017 · 1 comment

Comments

@rplabon
Copy link

rplabon commented Sep 13, 2017

`new GetPlaylistTitlesAsyncTask(mYouTubeDataApi) {
@OverRide
protected void onPostExecute(PlaylistListResponse playlistListResponse) {
// if we didn't receive a response for the playlist titles, then there's nothing to update
if (playlistListResponse == null)
return;

        mPlaylistTitles = new ArrayList();
        for (com.google.api.services.youtube.model.Playlist playlist : playlistListResponse.getItems()) {
            mPlaylistTitles.add(playlist.getSnippet().getTitle());

            Log.e("Titile", "" + "" + playlist.getSnippet().getTitle());
            Log.e("Thumbnail", "" + "" + playlist.getSnippet().getThumbnails().getDefault().getUrl());
        }
    }
}.execute(mPlaylistIds);`
@rplabon
Copy link
Author

rplabon commented Sep 13, 2017

playlist.getSnippet().getTitle() gives the Title...
but Why
playlist.getSnippet().getThumbnails() gives null.
How can I get Thumbnail of a particular Playlist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant