@@ -67,14 +67,14 @@ private YoutubeParsingHelper() {
6767 public static final String YOUTUBEI_V1_URL = "https://www.youtube.com/youtubei/v1/" ;
6868
6969 private static final String HARDCODED_CLIENT_VERSION = "2.20210728.00.00" ;
70- private static final String HARDCODED_KEY = "hello " ;
71- private static final String MOBILE_YOUTUBE_KEY = "hello-df2KTyQ_vz_yYM39w " ;
70+ private static final String HARDCODED_KEY = "" ;
71+ private static final String MOBILE_YOUTUBE_KEY = "" ;
7272 private static final String MOBILE_YOUTUBE_CLIENT_VERSION = "16.29.38" ;
7373 private static String clientVersion ;
7474 private static String key ;
7575
7676 private static final String [] HARDCODED_YOUTUBE_MUSIC_KEY =
77- {"hello-WEYFDNX30 " , "67" , "1.20210726.00.01" };
77+ {"" , "67" , "1.20210726.00.01" };
7878 private static String [] youtubeMusicKey ;
7979
8080 private static boolean keyAndVersionExtracted = false ;
@@ -316,7 +316,8 @@ public static JsonObject getInitialData(final String html) throws ParsingExcepti
316316
317317 public static boolean areHardcodedClientVersionAndKeyValid ()
318318 throws IOException , ExtractionException {
319- if (hardcodedClientVersionAndKeyValid .isPresent ()) {
319+ return false ;
320+ /*if (hardcodedClientVersionAndKeyValid.isPresent()) {
320321 return hardcodedClientVersionAndKeyValid.get();
321322 }
322323 // @formatter:off
@@ -351,7 +352,7 @@ public static boolean areHardcodedClientVersionAndKeyValid()
351352
352353 hardcodedClientVersionAndKeyValid = Optional.of(responseBody.length() > 5000
353354 && responseCode == 200); // Ensure to have a valid response
354- return hardcodedClientVersionAndKeyValid .get ();
355+ return hardcodedClientVersionAndKeyValid.get();*/
355356 }
356357
357358 private static void extractClientVersionAndKey () throws IOException , ExtractionException {
0 commit comments