1498e1905e
Reduce number of type conversions in YouTubeSearchExtractor.collectStreamsFrom by introducing new variable
TobiGr
2021-03-31 13:30:06 +02:00
abb790f465
Remove println in getSubscriberCount from PeertubeAccountExtractor class
TiA4f8R
2021-03-18 19:02:25 +01:00
772de53a66
Increase the number of subscribers in PeertubeAccountExtractorTest
TiA4f8R
2021-03-14 18:41:07 +01:00
efe2b964f0
Extract real subscribers of a Peertube account Apply fix provided in the PR and move all accounts/ strings to a constant, ACCOUNTS.
TiA4f8R
2021-03-05 19:12:06 +01:00
379d7312fa
Don't use a regular expression to find the last segment URL and do code improvements Apply suggestions provided in the PR and remove a redundant import.
TiA4f8R
2021-03-14 17:53:08 +01:00
d61d9d116d
Refactor getAudioStreams method of SoundcloudStreamExtractor Split the method into private methods, in order to have a better reading.
TiA4f8R
2021-03-13 15:26:05 +01:00
a7b15b51e6
Change t to transcodingJsonObject in SoundcloudStreamExtractor
TiA4f8R
2021-03-03 13:03:38 +01:00
0438828e36
Add a test for the number of audioStreams in CreativeCommonsPlaysWellWithOthers test It should be only two audio streams for track "Plays Well with Others, Ep 2: What Do an Army of Ants and an Online Encyclopedia Have in Common?" by Creative Commons (https://soundcloud.com/wearecc/plays-well-with-others-ep-2-what-do-an-army-of-ants-and-an-online-encyclopedia-have-in-common): - one which is a progressive stream, in MP3 format with a bitrate of 128 kbps - one which is an HLS stream, in OPUS format with a bitrate of 64 kbps.
TiA4f8R
2021-03-02 18:20:10 +01:00
3bd08a2880
Adress requested changes and use final where possible in SoundcloudStreamExtractor This commit moved the HLS parsing task to a separate method, did little performance improvements and used final where possible in the SoundcloudStreamExtractor file.
TiA4f8R
2021-02-20 15:59:05 +01:00
cbacd3c0a5
Add a check to don't show MP3 128kbps stream twice and catch IOException when fetching the HLS Manifest If a progressive stream is present in the transcodings, it's unnecessary to show twice an MP3 128kbps stream so if this is the case, the MP3 HLS stream will be not added to the audioStreams, else it will. This commit also catch fetching errors in HLS manifests parsing and don't add the corresponding stream if an error occurs.
TiA4f8R
2021-01-25 20:42:08 +01:00
26f1b4e7dc
Support SoundCloud HLS by using a workaround This commit tries to support SoundCloud HLS streams by parsing M3U manifests, get the last segment URL (in order to get track length) and request a segment URL equals to track's duration so it's a single URL.
TiA4f8R
2021-01-23 18:17:35 +01:00
22fa131922
Merge branch 'dev' into bandcamp
TobiGr
2021-03-05 19:45:37 +01:00
e55284bb8f
Code style improvements Use final where possible in YoutubeStreamExtractor and do some other code style improvements
TiA4f8R
2021-02-24 17:06:38 +01:00
d0a1041afd
Prevent NullPointerException and use equalsIgnorecase
TobiGr
2021-02-24 14:13:12 +01:00
448b68700c
Use final in exceptions and add AgeRestrictedException AgeRestrictedException will be thrown only if the reason message equals to "Sign in to confirm your age" and if the age limit is 18.
TiA4f8R
2021-02-23 19:03:34 +01:00
22e6f33f0a
Ignore SoundCloudGeoRestrictedTest until HLS stream extraction is added
TobiGr
2021-02-22 11:03:44 +01:00
21158744b1
Add expectedDescriptionIsEmpty() to DefaultStreamExtractorTest
TobiGr
2021-02-21 21:19:54 +01:00
3925204658
Add tests and rename SoundcloudGoPlusException to SoundcloudGoPlusContentException
TiA4f8R
2021-02-20 14:53:57 +01:00
771bb1a2cb
Add three new exceptions for unavailable YouTube contents These exceptions are thrown on a test with the error messages text, because YouTube returns only "UNPLAYABLE" status in most error cases. Tests are based with English strings, so changing the lang used by extractor will throw the generic exception (ContentNotAvailableException).
TiA4f8R
2021-02-14 15:22:45 +01:00
35325d980d
Add GeographicRestrictionException and SoundCloudGoPlusException in NewPipe Extractor to be able to display different error messages
TiA4f8R
2021-01-10 19:03:20 +01:00