NewPipeExtractor/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube
AudricV a3d160edab
[YouTube] Improve and fix YoutubeJavaScriptExtractor
- Enhance documentation;
- Fix the regular expression fallback on HTML embed watch page;
- Use HTML scripts tag search first instead of the regular expression approach,
now used as a last resort;
- Compile regular expressions only once, in order to improve the performance of
subsequent extraction calls when clearing the cache;
- Provide original exceptions when fetching or parsing pages on which the base
JavaScript's player could be found failed, allowing clients to detect network
errors when they are the cause of the failures for instance;
- Remove delegate method which was not taking a video ID and hardcoding one, as
we can provide the video ID in all cases or do not provide a video ID at worse;
- Rename and make extraction methods package-private, as they are not intended
to be used publicly.

These breaking internal changes have been applied where needed, in
YoutubeJavaScriptExtractorTest and YoutubeStreamExtractor (in which an unneeded
initStsFromPlayerJsIfNeeded call have been removed).
2023-08-02 23:05:08 +02:00
..
search Fix YoutubeSearchExtractorTest.MetaInfoTest 2022-11-22 16:34:54 +01:00
stream [YouTube] Fix stream tests failures 2023-07-23 19:19:02 +02:00
YoutubeChannelExtractorTest.java [YouTube] Test that no banner is returned for carouselHeaderRenders 2023-08-01 22:19:43 +02:00
YoutubeChannelLinkHandlerFactoryTest.java [YouTube] Add tests for handles and user IDs with non ASCII characters support 2022-11-03 19:46:42 +01:00
YoutubeChannelLocalizationTest.java Improve tests and randomness 2022-03-27 20:52:38 +02:00
YoutubeCommentsExtractorTest.java Only store ajaxJson for initial page and eager fetch the initial continuation. 2023-01-02 20:40:48 +00:00
YoutubeCommentsLinkHandlerFactoryTest.java Fix test about exception type: NPE, not IllegalArgment 2022-08-14 14:48:28 +02:00
YoutubeDashManifestCreatorsTest.java Add track types to audio streams (#1041) 2023-03-28 00:02:20 +02:00
YoutubeFeedExtractorTest.java Improve tests and randomness 2022-03-27 20:52:38 +02:00
YoutubeJavaScriptExtractorTest.java [YouTube] Improve and fix YoutubeJavaScriptExtractor 2023-08-02 23:05:08 +02:00
YoutubeKioskExtractorTest.java Improve tests and randomness 2022-03-27 20:52:38 +02:00
YoutubeMixPlaylistExtractorTest.java [YouTube] Add music mix test 2023-01-15 23:30:30 +01:00
YoutubeParsingHelperTest.java Add track types to audio streams (#1041) 2023-03-28 00:02:20 +02:00
YoutubePlaylistExtractorTest.java switch from string to Description object 2023-05-11 00:36:57 -04:00
YoutubePlaylistLinkHandlerFactoryTest.java ``YoutubePlaylistLinkHandlerFactoryTest``: Use parameterized tests 2022-08-14 14:48:31 +02:00
YoutubeServiceTest.java Updated to JUnit 5 2021-12-27 21:08:08 +01:00
YoutubeStreamLinkHandlerFactoryTest.java [YouTube] Add live URLs test and do minor improvements to YoutubeStreamLinkHandlerFactoryTest 2023-01-28 19:36:21 +01:00
YoutubeSubscriptionExtractorTest.java Use StandardCharsets.UTF_8. 2022-11-12 07:29:15 +05:30
YoutubeSuggestionExtractorTest.java [YouTube] Improve YoutubeSuggestionExtractorTest 2023-04-30 19:53:43 +02:00
YoutubeTestsUtils.java Fixed all YTMixPlaylists 2022-08-14 14:48:27 +02:00
YoutubeThrottlingDecrypterTest.java Improve ``YoutubeThrottlingDecrypterTest`` 2022-08-21 20:17:05 +02:00
YoutubeTrendingKioskInfoTest.java Improve tests and randomness 2022-03-27 20:52:38 +02:00
YoutubeTrendingLinkHandlerFactoryTest.java Updated to JUnit 5 2021-12-27 21:08:08 +01:00