aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/App.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/App.java')
-rw-r--r--src/main/java/App.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/App.java b/src/main/java/App.java
index 714ab27..ce2dc80 100644
--- a/src/main/java/App.java
+++ b/src/main/java/App.java
@@ -1,6 +1,6 @@
import com.pina.Holodex;
import com.pina.HolodexException;
-import com.pina.datatypes.Livestream;
+import com.pina.datatypes.Video;
import com.pina.query.LiveStreamsQueryBuilder;
import java.util.List;
@@ -12,11 +12,11 @@ public class App
Holodex holodex = new Holodex();
try {
LiveStreamsQueryBuilder query = new LiveStreamsQueryBuilder();
- query.setChannelId("UCBQd84IW8OvM8H5jftHdvmw");
query.setStatus("live");
- List<Livestream> livestreams = holodex.getLiveStreams(query);
- for (Livestream stream : livestreams) {
- System.out.println(stream.title + " is live with " + stream.live_viewers + " viewers" + stream.id);
+ query.setOrg("WACTOR");
+ List<Video> videos = holodex.getLiveStreams(query);
+ for (Video stream : videos) {
+ System.out.println(stream.title + " is live with " + stream.live_viewers + " viewers " + stream.id);
}
} catch (HolodexException e) {
System.err.println("Failed to get live streams: " + e.getMessage());
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage