From b97180e5d131c5ac8d53579adf311f98e5bd5bed Mon Sep 17 00:00:00 2001 From: TobiGr Date: Fri, 9 Apr 2021 10:03:31 +0000 Subject: [PATCH] deploy: e747a89be24c303680b54ad7e92f9d889767f62c --- javadoc/index-all.html | 19 ++ .../newpipe/extractor/package-tree.html | 6 +- .../youtube/YoutubeParsingHelper.html | 191 ++++++++++++++---- javadoc/overview-tree.html | 10 +- 4 files changed, 175 insertions(+), 51 deletions(-) diff --git a/javadoc/index-all.html b/javadoc/index-all.html index c98f36f67..00846c2f0 100644 --- a/javadoc/index-all.html +++ b/javadoc/index-all.html @@ -79,6 +79,14 @@
addAllErrors(Collection<Throwable>) - Method in class org.schabi.newpipe.extractor.Info
 
+
addClientInfoHeaders(Map<String, List<String>>) - Static method in class org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper
+
+
Add the X-YouTube-Client-Name and X-YouTube-Client-Version headers.
+
+
addCookieHeader(Map<String, List<String>>) - Static method in class org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper
+
+
Add the CONSENT cookie to prevent redirect to consent.youtube.com
+
addError(Throwable) - Method in class org.schabi.newpipe.extractor.Info
 
addError(Exception) - Method in class org.schabi.newpipe.extractor.InfoItemsCollector
@@ -99,6 +107,10 @@
 
addUrlText(String) - Method in class org.schabi.newpipe.extractor.MetaInfo
 
+
addYouTubeHeaders(Map<String, List<String>>) - Static method in class org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper
+
+
Add required headers and cookies to an existing headers Map.
+
af - Class in org.schabi.newpipe.extractor.timeago.patterns
 
AgeRestrictedContentException - Exception in org.schabi.newpipe.extractor.exceptions
@@ -710,6 +722,8 @@

G

+
generateConsentCookie() - Static method in class org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper
+
 
GeographicRestrictionException - Exception in org.schabi.newpipe.extractor.exceptions
 
GeographicRestrictionException(String) - Constructor for exception org.schabi.newpipe.extractor.exceptions.GeographicRestrictionException
@@ -4908,6 +4922,11 @@
 
setNextPage(Page) - Method in class org.schabi.newpipe.extractor.ListInfo
 
+
setNumberGenerator(Random) - Static method in class org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper
+
+
+ Only use in tests.
+
setOriginalUrl(String) - Method in class org.schabi.newpipe.extractor.Info
 
setParentChannelAvatarUrl(String) - Method in class org.schabi.newpipe.extractor.channel.ChannelInfo
diff --git a/javadoc/org/schabi/newpipe/extractor/package-tree.html b/javadoc/org/schabi/newpipe/extractor/package-tree.html index c1cc4720c..dfb47e10d 100644 --- a/javadoc/org/schabi/newpipe/extractor/package-tree.html +++ b/javadoc/org/schabi/newpipe/extractor/package-tree.html @@ -112,10 +112,10 @@ diff --git a/javadoc/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.html b/javadoc/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.html index d53444d17..754174381 100644 --- a/javadoc/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.html +++ b/javadoc/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.html @@ -17,7 +17,7 @@ catch(err) { } //--> -var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9}; +var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":9,"i35":9,"i36":9,"i37":9}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -128,166 +128,195 @@ extends Method and Description +static void +addClientInfoHeaders(Map<String,List<String>> headers) +
Add the X-YouTube-Client-Name and X-YouTube-Client-Version headers.
+ + + +static void +addCookieHeader(Map<String,List<String>> headers) +
Add the CONSENT cookie to prevent redirect to consent.youtube.com
+ + + +static void +addYouTubeHeaders(Map<String,List<String>> headers) +
Add required headers and cookies to an existing headers Map.
+ + + static boolean areHardcodedYoutubeMusicKeysValid()  - + static void defaultAlertsCheck(com.grack.nanojson.JsonObject initialData)
Shared alert detection function, multiple endpoints return the error similarly structured.
- + static String extractCachedUrlIfNeeded(String url)
Sometimes, YouTube provides URLs which use Google's cache.
- + static String extractCookieValue(String cookieName, Response response)  - + static String extractVideoIdFromMixId(String playlistId)
Extracts the video id from the playlist id for Mixes.
- + static String fixThumbnailUrl(String thumbnailUrl)  - + +static String +generateConsentCookie()  + + static String getClientVersion()
Get the client version
- + static String getFeedUrlFrom(String channelIdOrUser)  - + static com.grack.nanojson.JsonObject getInitialData(String html)  - + static com.grack.nanojson.JsonArray getJsonResponse(Page page, Localization localization)  - + static com.grack.nanojson.JsonArray getJsonResponse(String url, Localization localization)  - + static String getKey()
Get the key
- + static List<MetaInfo> getMetaInfo(com.grack.nanojson.JsonArray contents)  - + static Response getResponse(String url, Localization localization)  - + static String getTextAtKey(com.grack.nanojson.JsonObject jsonObject, String key)  - + static String getTextFromObject(com.grack.nanojson.JsonObject textObject)  - + static String getTextFromObject(com.grack.nanojson.JsonObject textObject, boolean html)
Get the text from a JSON object that has either a simpleText or a runs array.
- + static String getUrlFromNavigationEndpoint(com.grack.nanojson.JsonObject navigationEndpoint)  - + static String getValidJsonResponseBody(Response response)  - + static String[] getYoutubeMusicKeys()  - + static boolean isHardcodedClientVersionValid()  - + static boolean isHooktubeURL(URL url)  - + static boolean isInvidioURL(URL url)  - + static boolean isVerified(com.grack.nanojson.JsonArray badges)  - + static boolean isYoutubeChannelMixId(String playlistId)
Checks if the given playlist id is a YouTube Channel Mix (auto-generated playlist) Ids from a YouTube channel Mix start with "RDCM"
- + static boolean isYoutubeMixId(String playlistId)
Checks if the given playlist id is a YouTube Mix (auto-generated playlist) Ids from a YouTube Mix start with "RD"
- + static boolean isYoutubeMusicMixId(String playlistId)
Checks if the given playlist id is a YouTube Music Mix (auto-generated playlist) Ids from a YouTube Music Mix start with "RDAMVM" or "RDCLAK"
- + static boolean isYoutubeServiceURL(URL url)  - + static boolean isYoutubeURL(URL url)  - + static OffsetDateTime parseDateFrom(String textualUploadDate)  - + static int parseDurationString(String input)
Parses the duration string of the video expecting ":" or "." as separators
- + static void resetClientVersionAndKey()
Only use in tests.
- + +static void +setNumberGenerator(Random random) +
+ Only use in tests.
+ + + static String unescapeDocument(String doc)  @@ -541,6 +570,18 @@ extends + + + @@ -685,16 +726,6 @@ public static  - - - @@ -729,6 +760,80 @@ public static  + + + + + + + + + + + + + + + + + + + diff --git a/javadoc/overview-tree.html b/javadoc/overview-tree.html index e0244cfc7..2047e0c2e 100644 --- a/javadoc/overview-tree.html +++ b/javadoc/overview-tree.html @@ -506,15 +506,15 @@