aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/App.java
diff options
context:
space:
mode:
authorPinapelz <yukais6@uci.edu>2023-04-29 20:34:18 -0700
committerPinapelz <yukais6@uci.edu>2023-04-29 20:34:18 -0700
commit80239b6b63197519691153839f56e86fe99e18cb (patch)
tree32be637b71369a7411e16104a63efc48771ef1fd /src/main/java/App.java
parent9684c18084458c26569fad4574657eaca046d2ec (diff)
Updated code to use enums for certain constants
Diffstat (limited to 'src/main/java/App.java')
-rw-r--r--src/main/java/App.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/App.java b/src/main/java/App.java
index 65beef4..e55b7a7 100644
--- a/src/main/java/App.java
+++ b/src/main/java/App.java
@@ -26,13 +26,15 @@ public class App {
channelQuery.setLimit(75);
List<Channel> nijisanjiMembers = holodex.getChannels(channelQuery);
- Video anotherVideo = holodex.getVideo(new VideoByVideoIdQueryBuilder().setVideoId("9-O_IWM3184").setLang(Language.ENGLISH));
+ Video anotherVideo = holodex.getVideo(new VideoByVideoIdQueryBuilder().setVideoId("9-O_IWM3184").setLang(
+ List.of(Language.ENGLISH, Language.JAPANESE)));
+
System.out.println(anotherVideo.channel.name + " uploaded a video titled " + anotherVideo.title +
" on " + anotherVideo.published_at);
// SEARCHING THROUGH VIDEOS AND COMMENTS
Object srv = holodex.searchVideo(new VideoSearchQueryBuilder().setOrg(List.of("Nijisanji")).setSort(Sort.NEWEST).
- setTarget(List.of(Type.STREAM)).setPaginated(false).setLimit(10).setOffset(0)
+ setTarget(Type.STREAM).setPaginated(false).setLimit(10).setOffset(0)
.setTopic(List.of("singing"))
);
System.out.println("--- Search Results ---");
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage