@Test public void resolveIdWithEmbedPlayerTest() throws Exception { Assert.assertEquals("26057743", SoundcloudParsingHelper.resolveIdWithEmbedPlayer("https: Assert.assertEquals("16069159", SoundcloudParsingHelper.resolveIdWithEmbedPlayer("https: }
public static String resolveIdWithEmbedPlayer(String url) throws IOException, ReCaptchaException, ParsingException { String response = NewPipe.getDownloader().get("https: + URLEncoder.encode(url, "UTF-8"), SoundCloud.getLocalization()).responseBody(); if (url.contains("sets") && !url.endsWith("sets") && !url.endsWith("sets/")) return Parser.matchGroup1("\"uri\":\\s*\"https:\\/\\/api\\.soundcloud\\.com\\/playlists\\/((\\d)*?)\"", response); return Parser.matchGroup1(",\"id\":(([^}\\n])*?),", response); }
SoundcloudParsingHelper { public static String resolveIdWithEmbedPlayer(String url) throws IOException, ReCaptchaException, ParsingException { String response = NewPipe.getDownloader().get("https: + URLEncoder.encode(url, "UTF-8"), SoundCloud.getLocalization()).responseBody(); if (url.contains("sets") && !url.endsWith("sets") && !url.endsWith("sets/")) return Parser.matchGroup1("\"uri\":\\s*\"https:\\/\\/api\\.soundcloud\\.com\\/playlists\\/((\\d)*?)\"", response); return Parser.matchGroup1(",\"id\":(([^}\\n])*?),", response); } }
SoundcloudParsingHelper { public static String resolveIdWithEmbedPlayer(String url) throws IOException, ReCaptchaException, ParsingException { String response = NewPipe.getDownloader().get("https: + URLEncoder.encode(url, "UTF-8"), SoundCloud.getLocalization()).responseBody(); if (url.contains("sets") && !url.endsWith("sets") && !url.endsWith("sets/")) return Parser.matchGroup1("\"uri\":\\s*\"https:\\/\\/api\\.soundcloud\\.com\\/playlists\\/((\\d)*?)\"", response); return Parser.matchGroup1(",\"id\":(([^}\\n])*?),", response); } private  SoundcloudParsingHelper(); }
SoundcloudParsingHelper { public static String resolveIdWithEmbedPlayer(String url) throws IOException, ReCaptchaException, ParsingException { String response = NewPipe.getDownloader().get("https: + URLEncoder.encode(url, "UTF-8"), SoundCloud.getLocalization()).responseBody(); if (url.contains("sets") && !url.endsWith("sets") && !url.endsWith("sets/")) return Parser.matchGroup1("\"uri\":\\s*\"https:\\/\\/api\\.soundcloud\\.com\\/playlists\\/((\\d)*?)\"", response); return Parser.matchGroup1(",\"id\":(([^}\\n])*?),", response); } private  SoundcloudParsingHelper(); synchronized static String clientId(); static Calendar parseDateFrom(String textualUploadDate); static JsonObject resolveFor(Downloader downloader, String url); static String resolveUrlWithEmbedPlayer(String apiUrl); static String resolveIdWithEmbedPlayer(String url); static String getUsersFromApiMinItems(int minItems, ChannelInfoItemsCollector collector, String apiUrl); static String getUsersFromApi(ChannelInfoItemsCollector collector, String apiUrl); static String getStreamsFromApiMinItems(int minItems, StreamInfoItemsCollector collector, String apiUrl); static String getStreamsFromApi(StreamInfoItemsCollector collector, String apiUrl, boolean charts); static String getStreamsFromApi(StreamInfoItemsCollector collector, String apiUrl); @Nonnull static String getUploaderUrl(JsonObject object); @Nonnull static String getAvatarUrl(JsonObject object); static String getUploaderName(JsonObject object); }
SoundcloudParsingHelper { public static String resolveIdWithEmbedPlayer(String url) throws IOException, ReCaptchaException, ParsingException { String response = NewPipe.getDownloader().get("https: + URLEncoder.encode(url, "UTF-8"), SoundCloud.getLocalization()).responseBody(); if (url.contains("sets") && !url.endsWith("sets") && !url.endsWith("sets/")) return Parser.matchGroup1("\"uri\":\\s*\"https:\\/\\/api\\.soundcloud\\.com\\/playlists\\/((\\d)*?)\"", response); return Parser.matchGroup1(",\"id\":(([^}\\n])*?),", response); } private  SoundcloudParsingHelper(); synchronized static String clientId(); static Calendar parseDateFrom(String textualUploadDate); static JsonObject resolveFor(Downloader downloader, String url); static String resolveUrlWithEmbedPlayer(String apiUrl); static String resolveIdWithEmbedPlayer(String url); static String getUsersFromApiMinItems(int minItems, ChannelInfoItemsCollector collector, String apiUrl); static String getUsersFromApi(ChannelInfoItemsCollector collector, String apiUrl); static String getStreamsFromApiMinItems(int minItems, StreamInfoItemsCollector collector, String apiUrl); static String getStreamsFromApi(StreamInfoItemsCollector collector, String apiUrl, boolean charts); static String getStreamsFromApi(StreamInfoItemsCollector collector, String apiUrl); @Nonnull static String getUploaderUrl(JsonObject object); @Nonnull static String getAvatarUrl(JsonObject object); static String getUploaderName(JsonObject object);  }