diff --git a/java/src/main/java/com/google/api/services/samples/youtube/cmdline/live/ListBroadcasts.java b/java/src/main/java/com/google/api/services/samples/youtube/cmdline/live/ListBroadcasts.java index 0fafb563..6a421267 100644 --- a/java/src/main/java/com/google/api/services/samples/youtube/cmdline/live/ListBroadcasts.java +++ b/java/src/main/java/com/google/api/services/samples/youtube/cmdline/live/ListBroadcasts.java @@ -63,8 +63,8 @@ public static void main(String[] args) { youtube.liveBroadcasts().list("id,snippet"); // Indicate that the API response should not filter broadcasts - // based on their status. - liveBroadcastRequest.setBroadcastStatus("all"); + // based on their type or status. + liveBroadcastRequest.setBroadcastType("all").setBroadcastStatus("all"); // Execute the API request and return the list of broadcasts. LiveBroadcastListResponse returnedListResponse = liveBroadcastRequest.execute();