Commit graph

134 commits

Author SHA1 Message Date
kapodamy
fc4a892f45 code cleanup
* migrate few annotations to androidx
* mission recovery: better error handling (except StreamExtractor.getErrorMessage() method always returns an error)
* post-processing: more detailed progress

[file specific changes]

DownloadMission.java
* remove redundant/boilerplate code (again)
* make few variables volatile
* better file "length" approximation
* use "done" variable to count the amount of bytes downloaded (simplify percent calc in UI code)

Postprocessing.java
* if case of error use "ERROR_POSTPROCESSING" instead of "ERROR_UNKNOWN_EXCEPTION"
* simplify source stream init

DownloadManager.java
* move all "service message sending" code to DownloadMission
* remove not implemented method "notifyUserPendingDownloads()" also his unused strings

DownloadManagerService.java
* use START_STICKY instead of START_NOT_STICKY
* simplify addMissionEventListener()/removeMissionEventListener() methods (always are called from the main thread)

Deleter.java
* better method definition

MissionAdapter.java
* better method definition
* code cleanup
* the UI is now refreshed every 750ms
* simplify download progress calculation
* indicates if the download is actually recovering
* smooth download speed measure
* show estimated remain time

MainFragment.java:
* check if viewPager is null (issued by "Apply changes" feature of Android Studio)
2019-11-26 10:46:31 -03:00
kapodamy
2484698e8b long-term downloads resume
* recovery infrastructure
* bump serialVersionUID of DownloadMission
* misc cleanup in DownloadMission.java
* remove unused/redundant from strings.xml
2019-11-26 10:46:26 -03:00
naofum
d8e058579e Translated using Weblate (Japanese)
Currently translated at 100.0% (501 of 501 strings)
2019-11-14 01:03:23 +01:00
naofum
3795768fe0 Translated using Weblate (Japanese)
Currently translated at 100.0% (501 of 501 strings)
2019-11-10 00:04:15 +01:00
Mitosagi
0d2184899a Translated using Weblate (Japanese)
Currently translated at 100.0% (478 of 478 strings)
2019-11-02 15:17:41 +01:00
naofum
f46514d20d Translated using Weblate (Japanese)
Currently translated at 100.0% (478 of 478 strings)
2019-10-28 16:31:48 +01:00
naofum
5517c88fbb Translated using Weblate (Japanese)
Currently translated at 100.0% (478 of 478 strings)
2019-10-16 05:20:31 +02:00
Mauricio Colli
5e7ed39d9f Fix broken video count text translations
- Someone had the brilliant idea of removing the string arguments,
giving the the wrong example for other languages in the process.
2019-10-10 22:56:20 -03:00
naofum
0e200dea04 Translated using Weblate (Japanese)
Currently translated at 100.0% (478 of 478 strings)
2019-10-08 14:57:31 +02:00
naofum
59dc971df6 Translated using Weblate (Japanese)
Currently translated at 100.0% (477 of 477 strings)
2019-10-02 11:56:04 +02:00
naofum
b7781231d5 Translated using Weblate (Japanese)
Currently translated at 100.0% (477 of 477 strings)
2019-09-22 17:08:35 +02:00
naofum
d658b7214b Translated using Weblate (Japanese)
Currently translated at 100.0% (477 of 477 strings)
2019-09-21 05:43:03 +02:00
naofum
7e97975419 Translated using Weblate (Japanese)
Currently translated at 100.0% (477 of 477 strings)
2019-09-14 21:23:54 +02:00
yunna
c7be1449ad Translated using Weblate (Japanese)
Currently translated at 100.0% (476 of 476 strings)
2019-09-07 03:24:30 +02:00
naofum
f5634259ab Translated using Weblate (Japanese)
Currently translated at 100.0% (476 of 476 strings)
2019-09-07 03:24:29 +02:00
naofum
c88b3b509f Translated using Weblate (Japanese)
Currently translated at 100.0% (473 of 473 strings)
2019-08-29 21:23:56 +02:00
naofum
53522c8140 Translated using Weblate (Japanese)
Currently translated at 100.0% (471 of 471 strings)
2019-08-19 20:23:24 +02:00
TobiGr
c3a584960d Clean up string resources 2019-08-12 17:35:36 +02:00
TobiGr
44cc0e13ae Merge branch 'weblate' into dev 2019-08-12 17:25:10 +02:00
TobiGr
1ab22b66c9 Fix playback position not being deleted on clearing watch history 2019-08-07 14:34:49 +02:00
TobiGr
84b7c84fff Merge branch 'weblate' into release_v0.17.0 2019-08-01 01:44:25 +02:00
Christian Schabesberger
1833580102 Merge branch 'dev' into removeextra 2019-06-26 15:42:47 +02:00
naofum
80fc8f0a55 Translated using Weblate (Japanese)
Currently translated at 100.0% (451 of 451 strings)
2019-06-13 14:30:04 +02:00
kapodamy
03d1647479 amend rebase
resolve inconsistency in string.xml files
2019-06-04 15:45:28 -03:00
kapodamy
d9fb7cb420 misc changes
* implement socket timeout error
* use 128k buffer size for copy
* use NewPipe HTTP user agent in the downloads
* automatically recover downloads with network errors that are queued
2019-06-03 18:25:43 -03:00
kapodamy
9656f0486b Webm muxer fixes and strings.xml changes
* replace "In queue" to "Pending" in the downloads header to avoid confusions (all languages)
* use 29bits Clusters size to support huge video resolutions (fixes #2291) (WebmWriter.java)
* add missing changes to WebmMuxer.java (i forget select the audio track)
2019-06-03 18:24:49 -03:00
kapodamy
7ca7952790 Implement Storage Access Framework
* re-work finished mission database
* re-work DownloadMission and bump it Serializable version
* keep the classic Java IO API
* SAF Tree API support on Android Lollipop or higher
* add wrapper for SAF stream opening
* implement Closeable in SharpStream to replace the dispose() method

* do required changes for this API:
** remove any file creation logic from DownloadInitializer
** make PostProcessing Serializable and reduce the number of iterations
** update all strings.xml files
** storage helpers: StoredDirectoryHelper & StoredFileHelper
** best effort to handle any kind of SAF errors/exceptions
2019-06-03 18:16:41 -03:00
Tobias Groza
930aeb5a35 Merge remote-tracking branch 'Weblate/dev' into dev 2019-06-03 22:04:36 +02:00
yunna
81e4a5205d Translated using Weblate (Japanese)
Currently translated at 99.8% (442 of 443 strings)
2019-06-02 02:18:34 +02:00
Tobias Groza
c111dc3515 Remove old strings
Remove strings which have been deleted from the English strings file during development, but were translated via Weblate, which failed to pull and push our upstream repo.
2019-05-27 00:11:37 +02:00
yunna
17c0194fa5 Translated using Weblate (Japanese)
Currently translated at 100.0% (443 of 443 strings)
2019-04-29 13:46:50 +02:00
yunna
b9c8e7e5ed Translated using Weblate (Japanese)
Currently translated at 100.0% (443 of 443 strings)
2019-04-23 22:48:54 +02:00
sherlock
e6041939bf removed the gena strings. 2019-04-17 16:45:40 +05:30
naofum
b77797c563 Translated using Weblate (Japanese)
Currently translated at 100.0% (443 of 443 strings)
2019-03-20 03:14:37 +01:00
naofum
f3708f1165 Translated using Weblate (Japanese)
Currently translated at 96.6% (428 of 443 strings)
2019-02-13 12:11:14 +01:00
naofum
7fe41c094e Translated using Weblate (Japanese)
Currently translated at 98.4% (436 of 443 strings)
2019-02-12 16:20:23 +01:00
Chris
4b463e81ee Translated using Weblate (Japanese)
Currently translated at 98.4% (436 of 443 strings)
2019-02-12 16:20:22 +01:00
Christian Schabesberger
07c6d2588f merge weblate 2019-01-27 22:00:00 +01:00
naofum
f7fddf6277 Translated using Weblate (Japanese)
Currently translated at 84.3% (323 of 383 strings)
2019-01-15 19:20:52 +01:00
Rintaro matsuo
ce2aa30f35 Translated using Weblate (Japanese)
Currently translated at 81.5% (312 of 383 strings)
2018-12-07 21:08:59 +01:00
ScratchBuild
7ad618b1f2 Translated using Weblate (Japanese)
Currently translated at 81.5% (312 of 383 strings)
2018-12-07 21:08:58 +01:00
Christian Schabesberger
2902880dc7 merge weblate 2018-10-22 12:07:12 +02:00
maa123
bfe2bb68e5 Translated using Weblate (Japanese)
Currently translated at 96.8% (371 of 383 strings)
2018-10-18 11:31:52 +02:00
Christian Schabesberger
0c72d4614e add support for content language and content country 2018-10-05 16:20:27 +02:00
Nigel Ticknor
c69f7f4eb5 Translated using Weblate (Japanese)
Currently translated at 93.9% (360 of 383 strings)
2018-09-25 14:22:36 +02:00
naofum
44cab8336e Translated using Weblate (Japanese)
Currently translated at 93.7% (359 of 383 strings)
2018-09-17 23:21:51 +02:00
Shuuji TAKAHASHI (shuuji3)
e5ad7e91c5 Translated using Weblate (Japanese)
Currently translated at 88.7% (340 of 383 strings)
2018-09-14 21:20:02 +02:00
ScratchBuild
bad8251e4a Translated using Weblate (Japanese)
Currently translated at 74.1% (284 of 383 strings)
2018-09-08 19:15:24 +02:00
oscar
36b887dcc4 Removed incorrect explanations of the M4A and WebM audio formats 2018-08-12 23:46:21 -03:00
ScratchBuild
57684615d5 Translated using Weblate (Japanese)
Currently translated at 77.5% (283 of 365 strings)
2018-05-14 13:34:26 +02:00