Skip to content

Commit 1c7f9c8

Browse files
author
Jim Rogers
committed
Set broadcast type when listing broadcasts, otherwise nothing is returned
1 parent 47727f9 commit 1c7f9c8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

java/src/main/java/com/google/api/services/samples/youtube/cmdline/live/ListBroadcasts.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ public static void main(String[] args) {
6363
youtube.liveBroadcasts().list("id,snippet");
6464

6565
// Indicate that the API response should not filter broadcasts
66-
// based on their status.
67-
liveBroadcastRequest.setBroadcastStatus("all");
66+
// based on their type or status.
67+
liveBroadcastRequest.setBroadcastType("all").setBroadcastStatus("all");
6868

6969
// Execute the API request and return the list of broadcasts.
7070
LiveBroadcastListResponse returnedListResponse = liveBroadcastRequest.execute();

0 commit comments

Comments
 (0)