Commit Graph

79 Commits

Author SHA1 Message Date
Mauricio Colli 94e24a6e1c
Remove RunWith from tests
- It was causing tests to repeat
2018-03-13 23:50:57 -03:00
Mauricio Colli d71a42d6cd
Ignore some tests due to some recent changes 2018-03-13 23:43:13 -03:00
Mauricio Colli 37f2e5cfda
Make some methods return the specific InfoItem type
- Some methods were returning a broader range of InfoItem types than it should be. For example, a ChannelInfo should return a List containing only StreamInfoItem, instead of the more general InfoItem.
- Renamed and changed return type of ListExtractor.getInfoItems to getInitialPage returning a InfoItemsPage, to be consistent with getPage(url)
2018-03-13 23:32:31 -03:00
Mauricio Colli 5dd2daad37 Finish transition to use getters on Info classes
- Renamed Collector method
2018-03-13 23:28:58 -03:00
Mauricio Colli 6c07b7851b Fix Java 7 incompatibility 2018-03-13 23:25:23 -03:00
Mauricio Colli d9cf1fd631 Improve Channel and Playlist tests 2018-03-13 23:25:23 -03:00
Mauricio Colli 11216f361f Fix bug and some re-structure 2018-03-13 23:24:51 -03:00
Christian Schabesberger 5e34556ac3 removed more nextStreams keywords 2018-03-13 23:24:51 -03:00
Christian Schabesberger dc0ef3b89a remove unused ExtractionExceptions 2018-03-13 23:24:51 -03:00
Christian Schabesberger d812a114c5 made getPage() function be stand alone 2018-03-13 23:24:51 -03:00
Christian Schabesberger fce324d1bc fix playlist banner foo 2018-03-12 16:14:33 +01:00
John Zhen Mo cc3f3b8292 -Fixed Youtube page extraction on flagged / offensive content urls.
-Added test for flagged content url extraction.
2018-03-01 16:44:15 -08:00
Christian Schabesberger 86db415b18 architecture refacturing 2018-02-24 22:20:50 +01:00
Mauricio Colli 9dfcb3be06 Implement SubscriptionExtractor for services
- YouTube supports extracting from an export (from subscriptions manager)
- SoundCloud supports extracting the "followings" from an user
2018-02-22 11:52:38 -03:00
Christian Schabesberger 055cc41834 add support for hooktube links
fix some links
2018-02-12 20:04:55 +01:00
Mauricio Colli f3865445f5 Improve ServiceList class
- [Minor] Fix wrong arguments order in KioskInfo
2018-02-10 00:46:05 -02:00
John Zhen Mo aafe543334 -Removed new method in favor of current method.
-Fixed current method to output all available captions.
-Fixed tests.
2018-02-01 21:48:34 -08:00
John Zhen Mo b3699cdcfc -Fixed tests
-Simplified subtitle extraction url
2018-02-01 19:07:57 -08:00
John Zhen Mo 1f1bbaad57 -Fixed subtitles extraction to use method from youtube-dl.
-Expose subtitles during extraction.
-Make subtitle lists return nonnull empty collections instead of null.
2018-02-01 13:27:22 -08:00
Coffeemakr 06ea74cbb8
Add better tests for youtube search items 2018-01-04 18:48:15 +01:00
Coffeemakr 0ffd4d9743
Improve tests for search results and reuse code 2018-01-04 18:47:27 +01:00
Coffeemakr fe2583f3d7
Generate and verify Https links 2018-01-04 18:47:27 +01:00
Christian Schabesberger 5f2d0cf6b5 fix yt trending contains to less items 2018-01-04 04:46:27 +01:00
Schabi 044b8fe32f fix fetch page 2017-12-29 14:40:42 +01:00
Schabi 33bd9d9a7a fix kiosk content language 2017-12-29 01:12:55 +01:00
Schabi 2d191c4ca7 remove debug prints 2017-12-23 18:00:44 +01:00
John Zhen Mo e0315ca2af -Fixes age-gated video info retrieval.
-Fixes youtube video stream test passing even when no stream is fetched on age-gated videos.
2017-12-18 14:05:58 -08:00
Christian Schabesberger d6a00228e8 fix exception on found ads 2017-12-15 22:12:32 +01:00
Christian Schabesberger 647605c5a6 Merge branch 'fast-tests' of https://github.com/Jawnnypoo/NewPipeExtractor into fast 2017-12-07 13:46:43 +01:00
Coffeemakr f76cc4922e
Fix channel info item collector 2017-12-07 09:53:18 +01:00
John 93d9469bf6 Before -> BeforeClass to speed up tests 2017-12-06 19:09:46 -06:00
Christian Schabesberger a5ba482871 fix kiosk id test for germany 2017-11-30 16:33:57 +01:00
Coffeemakr 4fa14b31b9
Remove unused imports 2017-11-30 11:39:09 +01:00
Coffeemakr 4b092828db
Correct typo 2017-11-30 10:51:00 +01:00
Coffeemakr 9a46992285
Don't call fetch page in constructor 2017-11-30 10:49:46 +01:00
Christian Schabesberger 16b77b56cc fix failing tests 2017-11-25 19:21:33 +01:00
Coffeemakr dacffda194
Override getUploaderUrl fro YoutubeTrendingExtractor 2017-11-25 04:00:19 +01:00
Coffeemakr 239df49df3
Fix some test source code 2017-11-25 03:42:31 +01:00
Coffeemakr c9eb790d1c
Some tests extension 2017-11-25 03:13:26 +01:00
Coffeemakr 9cd11a7b6b
Encode paramters and small changes 2017-11-25 02:20:40 +01:00
Coffeemakr b5b9f8645c
Convert assertTrue(!..) to assertFalse 2017-11-25 02:20:33 +01:00
Coffeemakr d0a05706e3
Ignore get audio streams for age restricted video 2017-11-25 01:56:37 +01:00
Coffeemakr dc109d78f8
Fix bugs and present some in the future 2017-11-25 01:44:56 +01:00
Coffeemakr ceb556384b
Refactor collectors
* Define a common iterface
  * Use generic types
  * Remove some duplicated code
  * Simplify InfoItemSearchCollector and remove unused methods
  * SearchResult: Make fields final
2017-11-25 01:44:56 +01:00
Coffeemakr e11c6e35f6
Code refactoring
* Add getters
 * Add javadoc
 * Use Mediaformat instead of the id of media format
2017-11-25 01:44:11 +01:00
tonakriz 2c7acc74f5 Fixed exceptions as requested 2017-11-24 13:57:54 +01:00
tonakriz 310b34558b Changed the way of getting subtitles data type, removed language name from Subtitles class 2017-11-23 16:33:03 +01:00
tonakriz 320c0d8c99 Fixed typos in tests 2017-11-23 12:30:19 +01:00
tonakriz f09b4e68d0 Using Class instead of HashMap, removed downloadSubtitles method 2017-11-23 11:47:08 +01:00
tonakriz 6e3651fdf5 Added method to download subtitles as VTT 2017-11-23 00:10:12 +01:00