Stypox
553b80164b
Move all error-related classes into error package
2021-03-07 17:49:28 +01:00
XiangRongLin
2926cb7682
Respect expires header when checking for new version
...
It was called to many times and acted similar to a DOS attack.
2021-01-23 09:02:11 +01:00
Stypox
10c35f354e
Merge pull request #5225 from XiangRongLin/extract_settings_import
...
Extract settings import
2021-01-14 15:18:36 +01:00
Stypox
9ee7740fcc
Merge pull request #4947 from Isira-Seneviratne/Convert_ExceptionUtils_to_extensions
...
Rewrite ExceptionUtils methods as extension functions.
2021-01-14 14:54:37 +01:00
XiangRongLin
031585be3f
Add comment about unexpected assertion
2021-01-13 17:25:00 +01:00
Isira Seneviratne
50dcf308a2
Add extension functions that accept reified types.
2021-01-11 16:49:46 +05:30
Isira Seneviratne
486e720e00
Rewrite ExceptionUtils methods as extension functions.
2021-01-11 16:49:45 +05:30
XiangRongLin
50a026183d
Make Localization.relativeTime testable
...
Problem is global state in static variable prettyTime. But for performance reasons on Android that is preferred.
Now allow injecting prettyTime dependency by making init function public.
2021-01-06 14:48:34 +01:00
XiangRongLin
716d795970
cleanup
2021-01-03 20:32:16 +01:00
XiangRongLin
fcfdcd1025
Fix ensureDbDirectoryExists
2021-01-03 20:32:16 +01:00
XiangRongLin
af119db1d7
Extract settings file deletion
2021-01-03 20:32:16 +01:00
XiangRongLin
122e80fae9
Remove subclasses from ContentSettingsManagerTest
...
ExportTest provides no value.
ImportTest creates temporary files even if not needed.
2021-01-03 20:32:16 +01:00
XiangRongLin
8fceffd6fd
Introduce NewPipeFileLocator class
2021-01-03 20:32:16 +01:00
XiangRongLin
f778c48923
Add basic tests for settings import
2021-01-03 20:32:16 +01:00
XiangRongLin
ea91a62c89
Adjust ExportTest to new DI with FileLocator
2021-01-03 20:32:16 +01:00
Stypox
28802805f8
Merge pull request #5204 from XiangRongLin/fix_before_all
...
Use @BeforeClass for ContentSettingsManagerTest.beforeClass
2020-12-19 14:33:37 +01:00
Stypox
96862cbcb3
Merge pull request #5208 from Stypox/recaptcha-pbj
...
Remove pbj=1 parameter from YouYube urls in recaptcha activity
2020-12-18 18:28:44 +01:00
Stypox
10f79e1307
Remove pbj=1 parameter from YouYube urls in recaptcha activity
2020-12-17 21:02:13 +01:00
XiangRongLin
e0ee3dce40
Use @BeforeClass for ContentSettingsManagerTest.beforeClass
2020-12-17 09:40:04 +01:00
Stypox
d46c7eb8fe
Merge pull request #5059 from XiangRongLin/content_settings_manager
...
Extract export database logic into own class
2020-12-15 10:34:32 +01:00
Stypox
c2210330b6
Show radio instead of Youtube logo in mixes
...
YouTube mixes have YouTube as a creator, though YouTube's logo is not safe to use as it is a trademark (better safe than sorry)
2020-12-14 19:22:00 +01:00
Isira Seneviratne
c0d6c8aeb3
Add a workaround for a possible null offset ID.
2020-12-10 15:23:30 +05:30
Tobias Groza
db9f20a22f
Merge pull request #4961 from TeamNewPipe/lint
...
Fix some Lint errors
2020-12-07 11:19:01 +01:00
XiangRongLin
f7f00293cc
Extract export database logic into own class
...
- Separate it from the UI.
- Add happy path unit test.
2020-12-04 18:30:29 +01:00
Stypox
f0ca916432
Update most dependencies
2020-11-22 14:03:10 +01:00
TobiGr
7a8dab2d58
Fix typos
2020-11-22 10:39:00 +01:00
TacoTheDank
773bde14ab
Lint: 'size() == 0' replaceable with 'isEmpty()'
2020-11-18 17:54:16 -05:00
wb9688
87228673b4
Use final where possible
2020-08-16 10:25:09 +02:00
wb9688
b0415a5289
Auto-format using Ktlint
2020-05-01 20:13:21 +02:00
Mauricio Colli
a1b9892c77
Move exception utils to a separate class and add tests for it
2020-04-09 13:22:18 -03:00
wb9688
fda5405e48
Improve code style to be more consistent
2020-04-02 15:57:50 +02:00
Mauricio Colli
f133bbf499
Introduce a proper way to find urls in a string input
2020-03-28 14:06:09 -03:00
Mauricio Colli
20a4bb0936
Implement new feed and subscriptions groups
...
- Introduce Groupie for easier lists implementations
- Use some of the new components of the Android Architecture libraries
- Add a bunch of icons for groups, using vectors, which still is
compatible with older APIs through the compatibility layer
2020-03-14 00:12:31 -03:00
Mauricio Colli
7e311e5567
Fix mess with tab handling and enable ignored tests again
...
- Fix typo in a string resource
- Reorder tabs so the default kiosk is on top of the others
2019-11-20 00:23:29 -03:00
Ritvik Saraf
369fd95e2b
skip tests, fix later
2019-03-11 06:27:18 +05:30
kapodamy
eb1f56488f
resbase (08/11/2018)
2018-11-08 22:00:13 -03:00
BO41
af280a7343
Java language level + javadoc + xml
...
replace with <>
String builder
BUILD SUCCESSFUL in 4s
39 actionable tasks: 4 executed, 35 up-to-date
2018-09-11 19:20:10 +02:00
BO41
27fbe69033
code cleanup
...
mainly removes throw statements
automated using Android Studio, staged by hand
BUILD SUCCESSFUL in 52s
39 actionable tasks: 37 executed, 2 up-to-date
2018-09-11 19:14:21 +02:00
Mauricio Colli
43674ae80a
Improve tabs UX and saving/loading
...
- Show icons in the tabs list and dialog chooser
- Add a "restore to defaults" button
- Make removing gesture more user intuitive
2018-09-04 23:54:17 -03:00
Christian Schabesberger
c43ac7c869
fix conflict
2018-05-27 13:30:23 +02:00
Christian Schabesberger
8ed9d71e14
put local foo into local foo folder
2018-04-29 12:47:12 +02:00
James Straub
d1b0cd74be
Added the ability to limit video quality if using mobile data.
...
* Added a dropdown to video & audio settings
* Changes to ListHelper:
** Limits resolution when code requests the default video resolution
** Limits audio bitrate when code requests the default audio bitrate
** Removed some dead code and did some cleanup
** Make methods private/protected to help understand what was in use
** The code now chooses one format over an other using a simple raking system defined in array constants. I realized I needed to do this in order to choose the most efficient video stream. I did my best to evaluate the video and audio formats based on quality and efficiency. It's not an exact science.
** Made changes to the tests to support my changes
2018-04-21 12:35:04 -04:00
John Zhen Mo
18d019c62a
-Added quadratic slider strategy implementation and tests.
...
-Modified playback speed control to use quadratic sliders instead of linear.
-Modified number formatters in player helper to use double instead of float.
-Simplified slider behavior in playback parameter dialog.
-Fixed potential NPE in base local fragment.
2018-03-21 20:08:33 -07:00
Mauricio Colli
83b084a90b
Implement subscriptions import/export
...
- Import subscriptions from YouTube and SoundCloud (all services that the extractor support)
- Import/export a JSON representation of the subscriptions
- [Minor] Remove some javax annotations in favor of the one provided by the android support library
2018-03-08 10:39:24 -03:00
Coffeemakr
962e070150
Use Mediaformat objects instead of ids for tests
2017-12-08 13:57:44 +01:00
Coffeemakr
d6fffc7e55
Use correct long comparison ( fixes #726 )
2017-09-23 08:35:06 -03:00
Mauricio Colli
146d4a8365
Update extractor and refactored NewPipe
2017-09-03 13:57:12 -03:00
Coffeemakr
b03723c3fb
Code improvements
...
* Replace unchecked casts with checked casts
* remove Utility.finViewById
* Fix return activity checking
* Create UserAction enum
* Fix typos
* Add instrumented test for error info
* ErrorInfo make fields final
* Log exception using logger
* Add inherited annotations
* Resolve deprecation warnings
* Remove unused methods from utility
* Reformat code
* Remove unused methods from Utility and improve getFileExt
* Create OnScrollBelowItemsListener
2017-06-28 18:56:05 +02:00
Mauricio Colli
3b9a477499
Add resolution support up to 4k and 60 fps
...
- Up to 4k with 60 fps
- Not every device can play in that resolution and bitrate
- Add option to hide these high resolution greater than 1080p (2k,4k) for not clutter the menus
- Add a default resolution for the popup, wil be used when opening in popup mode from another app
2017-04-12 03:07:15 -03:00
Christian Schabesberger
927057ab83
Merge pull request #465 from mauriciocolli/fix-travis
...
Fix travis and YoutubeStreamUrlIdHandler
2017-02-27 19:03:28 +01:00
Christian Schabesberger
c14771534f
redesign channel activity
2017-02-27 15:58:09 +01:00
Mauricio Colli
319d769233
Change video Id
...
The previous wasn't working
2017-02-25 18:14:32 -03:00
Christian Schabesberger
4cc2976061
add unit test for new channel search
2017-02-16 00:46:15 +01:00
Christian Schabesberger
477f182b43
convert android tests to junit tests
2017-02-16 00:17:43 +01:00
Christian Schabesberger
849a45a3ca
resolve conflict
2017-01-22 14:26:01 +01:00
Coffeemakr
2ded33110f
Improve YoutubeStreamUrlIdHandler
...
* Make it a singelton
* Accept embed links
* Accept share links (youtube.com/shared?ci=...)
* Add tests
* Accept host case insensititve
2017-01-11 17:25:53 +01:00
Coffeemakr
ea76f1d6e2
Improve DownloadManager and -Service
...
* Fix permission at some places
* Fix access problem for downloaded files with external player
* Store finished Downloads
* Remove binding to DownloadService just to download a file
* Javadoc
* Code improvements
2017-01-10 17:48:55 +01:00