Stypox
c80c378398
Fix downloading/exporting when overwriting file would not truncate
2024-11-24 18:36:54 +01:00
Stypox
f31e5c1a8e
Update app/src/main/java/org/schabi/newpipe/streams/io/StoredDirectoryHelper.java
...
Co-authored-by: Tobi <TobiGr@users.noreply.github.com>
2024-04-23 18:39:56 +02:00
Stypox
8756a6a01a
Ignore all errors when getting free storage space
...
It's not a critical check that needs to be perfomed, so in case something does not work on some device/version, let's just ignore the error.
2024-04-23 18:05:31 +02:00
Stypox
4b0e50fd65
Fix free storage space check for all APIs
...
See https://stackoverflow.com/q/31171838
See https://pubs.opengroup.org/onlinepubs/9699919799/functions/fstatvfs.html
2024-04-23 12:16:06 +02:00
CloudyRowly
109f02830e
Added "free memory" check before downloading [Android N / API 24+] ( #10505 )
...
Added "free space" check before downloading eliminating bugs related to out-of-memory on Android N / API 24+
2024-03-21 09:18:55 +01:00
TobiGr
919c274820
Fix doc formatting
2023-09-20 19:44:23 +02:00
Isira Seneviratne
b99dcafba7
Switch to Files.createDirectories()
2023-09-20 19:44:23 +02:00
TobiGr
fd19e8e9f7
Replace RuntimeException with IOException
...
The RuntimeException was not explicitly declared and thus not caught at every call of this constructor. This change ensures that this possible exception is handled by the dedicated error handlers.
2023-09-17 15:31:19 +02:00
TobiGr
0f42c58409
Small code and doc improvements
...
Remove unnecessary else-branch and use Collections.isEmpty().
Add doc comment for splitFilename()
2023-09-17 15:31:19 +02:00
Isira Seneviratne
adb597f1ca
Use Path in the download helper classes.
2023-09-17 14:50:26 +02:00
Isira Seneviratne
0aefc8e14d
Use Math.floorDiv().
2022-11-09 20:01:40 +05:30
Isira Seneviratne
b49b8f325d
Use toArray() with zero-length arrays.
2022-08-05 06:50:55 +05:30
litetex
c32fd9a20c
Changed the code accordingly
...
+ Removed some unused code
2022-07-15 19:55:19 +02:00
litetex
4a4ca3c18e
Clean up pre-Lollipop checks
2022-07-13 19:02:24 +02:00
Stypox
8cc890d799
Use @SuppressWarnings for checkstyle suppressions & warnings
...
It's better to use @SuppressWarnings instead of the suppressions file, so that the warning suppression is at the place where it acts.
2022-03-18 23:57:11 +01:00
litetex
5ae1a58b31
Android 10+ only allows SAF -> Respect that in the dialog
2021-12-08 20:22:26 +01:00
litetex
1ca53732b9
Removed unused import
2021-11-29 21:13:22 +01:00
litetex
6f554a1187
Removed annotations due to wrong warnings
2021-11-29 21:03:59 +01:00
litetex
625ffba8b7
Refactoring + deduplicated code
2021-11-28 14:07:45 +01:00
litetex
9285958b4f
Show an alert/dialog when no appropriate file-manager was found
2021-11-27 15:52:54 +01:00
Stypox
6cf6a9faad
Provide mime type to file picker to gray out unselectable files
2021-08-01 13:52:32 +02:00
Stypox
c558f90866
Add log when existsAsFile() is called on an invalid StoredFileHelper
2021-07-27 17:56:41 +02:00
Stypox
12e6ef4bce
Fix NullPointerException when checking if storage exists
2021-07-27 11:36:14 +02:00
Stypox
2d92f18471
Reimplement storing backup import/export path
...
#6319 and #6402 were reverted before adding SAF changes, and have been readded at the end of SAF changes
2021-06-08 10:41:24 +02:00
Stypox
d920c7c1ea
Check if file really exists before asking user to overwrite it
2021-06-08 10:40:45 +02:00
Stypox
c6ad9b8f66
Fix strange behaviour when app loses access to saf download folder
2021-06-08 10:40:45 +02:00
Stypox
3399ed2b30
Pass mime type so that SAF treats file extension correctly
2021-06-08 10:40:45 +02:00
Stypox
0c322e47cb
Add comments to SharpStreams
2021-06-08 10:40:45 +02:00
wb9688
995264e5e2
Move Stored(File|Directory)Helper into NewPipe
2021-06-08 10:40:44 +02:00
wb9688
4e133a3599
Support SAF properly
2021-06-08 10:40:44 +02:00
mhmdanas
1f98ef54de
Make some minor changes
2021-05-15 18:48:16 +03:00
mhmdanas
de2e4722ad
Fix typos
2020-12-07 13:35:37 +03:00
TobiGr
40d32034dd
Fix Lint: Inconsistent line separators
2020-11-22 10:16:27 +01:00
TacoTheDank
04f9272706
Lint: Inner class may be static
2020-11-18 18:02:33 -05:00
TacoTheDank
497e145c70
Lint: Make a bunch of stuff final
2020-11-18 17:50:00 -05:00
TacoTheDank
0ef2e07cf4
Some general-purpose lint cleanup
2020-09-06 12:55:26 +02:00
wb9688
25b56bf5e4
Use final where possible
2020-08-16 10:25:09 +02:00
Avently
a6894644d1
Made checkStyle happy
2020-07-14 20:21:32 +03:00
Avently
aef78ace88
Merged the latest changes
2020-07-13 04:17:21 +03:00
kapodamy
4515a5f4ed
checkstyle's amend
2020-07-05 23:55:40 -03:00
kapodamy
39ee35c9d3
update WebMWriter.java
2020-07-03 20:51:45 -03:00
kapodamy
d8b2a5e51d
Drop "writing/muxed by" metadata
...
* All muxers (mp4, webm and ogg) are affected
* solve some checkstyle's errors (building was blocked)
Mp4FromDashWriter:
* drop "writing application"
* drop "handler name"
OggFromWebMWriter:
* drop "writing application" for OPUS and VORBIS header
WebMWriter:
* Drop "Muxing application"
* Drop "Writing application"
2020-07-03 02:07:42 -03:00
Avently
60fd42dfa3
Changes for review
2020-06-27 06:25:50 +03:00
Roy Yosef
f2edfe399d
Add sub-channel details to channel fragment
2020-05-07 20:39:32 +02:00
wb9688
205c5ff2ca
Optimize imports
2020-05-01 20:13:01 +02:00
wb9688
213b0dc176
Suppress remaining Checkstyle errors
2020-04-09 17:24:43 +02:00
kapodamy
3be6402041
checkstyle
...
* drop unused methods
* split blobs
* make no final parameters
2020-04-08 12:08:01 -03:00
wb9688
4b196c6a8c
Use Checkstyle for org.schabi.newpipe.streams as well
2020-04-02 16:48:57 +02:00
kapodamy
4c806c8ab9
code cleanup
2020-04-01 15:30:32 -03:00
kapodamy
0295a1fe49
misc changes
...
* read "SeekPreRoll" from the source track (if available)
* use the longest track duration as segment duration, instead of the video track duration
* do not hardcode the "Cue" reserved space behavior
* do not hardcode the "EBML Void" element, unreported issue. The size was not properly calculated
* rewrite the key-frame picking
* remove writeInt(), writeFloat() and writeShort() methods, use inline code
* set "SeekPreRoll" and "CodecDelays" values on output tracks (if available)
* rewrite the "Cluster" maker
* rewrite the code of how "Cluster" sizes are written
Fix encode() method (the reason of this commit/pull-request):
* Use the unsigned shift operator instead of dividing the value, due precession lost
2020-03-12 00:50:14 -03:00