Commit graph

161 commits

Author SHA1 Message Date
renovate[bot]
58cbd9cf9d
fix(deps): update androidx.media3 to v1.1.0 (#427)
* fix(deps): update androidx.media3 to v1.1.0

* fix: implement missing members in `MPVPlayer`

* lint: run ktlintFormat

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
2023-07-09 11:44:46 +02:00
renovate[bot]
80a86e2dfc
chore(deps): update dependency org.jlleitschuh.gradle.ktlint to v11.5.0 (#426)
* chore(deps): update dependency org.jlleitschuh.gradle.ktlint to v11.5.0

* feat: bump to ktlint 0.50.0

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
2023-07-08 00:36:23 +02:00
Natanel Shitrit
8ccda933cc chore(translate): (Hebrew)
Currently translated at 100.0% (15 of 15 strings)

Translation: Findroid/player:video
Translate-URL: https://weblate.jdtech.dev/projects/findroid/playervideo/he/
2023-07-07 23:27:52 +02:00
Ido
43bd2621d1 chore(translate): (Hebrew)
Currently translated at 93.3% (14 of 15 strings)

Translation: Findroid/player:video
Translate-URL: https://weblate.jdtech.dev/projects/findroid/playervideo/he/
2023-07-06 21:00:40 +02:00
Pysta
05feb1d67b chore(translate): (Slovak)
Currently translated at 100.0% (15 of 15 strings)

Translation: Findroid/player:video
Translate-URL: https://weblate.jdtech.dev/projects/findroid/playervideo/sk/
2023-07-06 21:00:40 +02:00
Simon Scholz
3e07951f01 chore(translate): (Chinese (Simplified))
Currently translated at 86.6% (13 of 15 strings)

Translation: Findroid/player:video
Translate-URL: https://weblate.jdtech.dev/projects/findroid/playervideo/zh_Hans/
2023-07-04 14:27:52 +02:00
Adorján
a24bfedb55 chore(translate): (Hungarian)
Currently translated at 93.3% (14 of 15 strings)

Translation: Findroid/player:video
Translate-URL: https://weblate.jdtech.dev/projects/findroid/playervideo/hu/
2023-06-29 23:27:52 +02:00
Cristian
a6905de635 chore(translate): (Spanish)
Currently translated at 93.3% (14 of 15 strings)

Translation: Findroid/player:video
Translate-URL: https://weblate.jdtech.dev/projects/findroid/playervideo/es/
2023-06-29 23:27:52 +02:00
Jarne Demeulemeester
0b4e771e01
chore: clean up strings 2023-06-24 12:29:05 +02:00
cd16b
6db1706f66 chore(translate): (Italian)
Currently translated at 100.0% (14 of 14 strings)

Translation: Findroid/player:video
Translate-URL: https://weblate.jdtech.dev/projects/findroid/playervideo/it/
2023-06-24 00:28:30 +02:00
jarnedemeulemeester
43b3ceafba
chore: remove unused resources 2023-06-24 00:28:14 +02:00
Cd16d
ce1fe7edfc
fix: missing/hardcoded strings (#415)
* fix: add missing/hardcoded strings

* Update strings.xml
2023-06-23 16:11:22 +02:00
CakesTwix
c43e7cb6a4 chore(translate): (Ukrainian)
Currently translated at 100.0% (5 of 5 strings)

Translation: Findroid/player:video
Translate-URL: https://weblate.jdtech.dev/projects/findroid/playervideo/uk/
2023-06-20 16:27:52 +02:00
Jarne Demeulemeester
b426a920c3
lint: run ktlintFormat 2023-06-19 23:44:42 +02:00
renovate[bot]
07efae6f4c
chore(deps): update dependency org.jlleitschuh.gradle.ktlint to v11.4.0 (#293)
* chore(deps): update dependency org.jlleitschuh.gradle.ktlint to v11.4.0

* fix: use .editorconfig

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jarnedemeulemeester <jarnedemeulemeester@gmail.com>
2023-06-19 23:16:02 +02:00
CakesTwix
4cc753bf07 chore(translate): add (Ukrainian) 2023-06-19 16:25:39 +02:00
Nicolas Boyer
1c75f233e0 chore(translate): (French)
Currently translated at 100.0% (5 of 5 strings)

Translation: Findroid/player:video
Translate-URL: https://weblate.jdtech.dev/projects/findroid/playervideo/fr/
2023-06-05 20:27:51 +02:00
Jarne Demeulemeester
3f8f657573
feat: always show extended episode title
Remove the option to display extended title
2023-05-22 00:14:33 +02:00
Jarne Demeulemeester
7e4ac39e83
perf: remove duplicate getMediaSources call when preparing player items 2023-05-20 15:25:57 +02:00
lzyhenniu
43bb735610 chore(translate): (Chinese (Simplified))
Currently translated at 100.0% (5 of 5 strings)

Translation: Findroid/player:video
Translate-URL: https://weblate.jdtech.dev/projects/findroid/playervideo/zh_Hans/
2023-05-19 08:27:51 +02:00
Jarne Demeulemeester
fd33d52bba
feat: add product flavors libre and huawei
Huawei requires a different app icon. They don't like the Android Robot :(
2023-05-14 18:32:46 +02:00
NeroPcStation
5c843adcd0 chore(translate): (Polish)
Currently translated at 100.0% (5 of 5 strings)

Translation: Findroid/player:video
Translate-URL: https://weblate.jdtech.dev/projects/findroid/playervideo/pl/
2023-05-14 11:19:34 +02:00
Jarne Demeulemeester
b816a2d460
perf: only request stream url when preparing player items 2023-05-13 21:34:05 +02:00
NickSkier
9bbf73d59c chore(translate): (Russian)
Currently translated at 100.0% (5 of 5 strings)

Translation: Findroid/player:video
Translate-URL: https://weblate.jdtech.dev/projects/findroid/playervideo/ru/
2023-05-12 02:27:51 +02:00
newton181
e2be590f0f chore(translate): (Spanish)
Currently translated at 100.0% (5 of 5 strings)

Translation: Findroid/player:video
Translate-URL: https://weblate.jdtech.dev/projects/findroid/playervideo/es/
2023-05-12 02:27:51 +02:00
Weblate
2c32d318d8 Update translation files
Updated by "Remove blank strings" hook in Weblate.

Translation: Findroid/player:video
Translate-URL: https://weblate.jdtech.dev/projects/findroid/playervideo/
2023-05-11 00:27:51 +02:00
Mario
7a9796428b chore(translate): (Spanish)
Currently translated at 80.0% (4 of 5 strings)

Translation: Findroid/player:video
Translate-URL: https://weblate.jdtech.dev/projects/findroid/playervideo/es/
2023-05-11 00:27:50 +02:00
jarnedemeulemeester
8a96588a88
fix: show indexNumberEnd 2023-05-08 23:51:31 +02:00
Jarne Demeulemeester
00c84fa9d5
Items and downloads rework (#329)
* refactor WIP: stop using `BaseItemDto` but use custom items specific to Findroid

This will make it easier to support downloaded items

* refactor: split `MediaInfoFragment` into `MovieFragment` and `ShowFragment`

* feat: add download icons to items

* feat WIP: download movies

* feat: download movie and play local file

* fix: remove `VideoVersionDialogFragment` from `ShowFragment`

* feat: select which version you want to download

* feat: delete downloaded movie

* feat: download progress indicator

* refactor: rename JellyfinItems to FindroidItems

* feat: offline mode (movies only)

* feat: offline mode card

* feat: download external files

* feat: toggle played on downloads

* feat: convert intros to `FindroidIntro`

* refactor: add itemId and sourceId to external downloaded subtitle filenames

* refactor: simplify `onMediaItemTransition`

* refactor: clean up some player item logic

* feat: download trickPlay data

* refactor: downloading of item to only require the item and a source id

* fix: external subtitle title

* feat: add `DownloadsFragment`

* feat: download episodes

* fix: cascade deletion if last item

* feat: download intro timestamps

* feat WIP: add storage activity

* feat: user data in separate table

* feat: add buttons to season fragment

* fix: improve responsiveness of the watched and favorite buttons

* fix: move `ic_database.xml` to main

* perf: optimize home fragment by limiting the number of items

* fix: database improvements

- use compound primary key for FindroidUserDataDto instead of id
- set played to false when playback percentage is below 90%
- capitalize SQL keywords
- update favorite in userdata
- set primary key of TrickPlayManifestDto to itemId
- prepare to sync data back to server

* feat: sync playback progress

This includes playback position, played and favorite

* fix: use non-transitive r classes

* lint: ktlint fix

* refactor: centralize item buttons in `item_actions.xml`

* feat: show intermediate progress when progress is less than 5

Also remove delete button from item_actions.xml

* feat: remove intros

* feat: check available storage space before downloading

* fix: trailer button

* refactor: make indexNumberEnd nullable

* feat: add offline mode toggle in settings

* fix: download over mobile data and roaming

* feat: immediately show spinner when tapping download

* revert: season fragment buttons

* feat: snackbar in downloads fragment

This snackbar is displayed when there is no connection to the server but the app is not in Offline Mode (Offline Mode is required to play content when the server is unavailable)

* refactor: make onReceive arguments non nullable

* fix: handle download finished / failed when BroadcastReceiver does not work

* fix: download multiple episodes

* feat: download to external storage (SD card)

* fix: reset download button when dialog is dismissed

* feat(offline): show "continue watching" episodes on home

* fix: watch progress bar on episode item in season

* feat(offline): next up items

* lint: fix some linting issues

* lint: fix some linting issues

* lint: fix some linting issues

* feat: remove StorageActivity

StorageActivity is not ready yet and out of scope for this PR

* fix: collection types that are not known crash the media fragment

* fix: downloading trick play data

* fix: sort downloaded items

* fix: navigate back if item is deleted instead of showing error

Navigate back based on NullPointerException in loadData method of viewmodels. This may not be the best approach but it works well enough.

Navigating back from BottomSheetFragment does not trigger onResume of previous fragment which in turn does not refresh its contents.

* fix: play from local storage instead of server when downloaded

* fix: missing items

* fix: `SyncWorker` using the app JellyfinApi instance instead of it's own

* fix: only show downloaded items when navigating from `DownloadsFragment`

* fix: make chips horizontal scrollable

* feat: migrate database (retain) and downloads (wipe)

Also add indexes on seriesId and seasonId

* fix: remove temp testing in downloadsMigrated

* lint: fix some linting issues

* fix: add error handling to downloading item

* feat: add "Preparing download" dialog to make sure the user waits for the download to start

* refactor: first show dialog then start downloading

* fix: add error handling to user configuration in `PlayerViewModel`

* feat: allow downloads to be cancelled

* fix: "View details" is cut off when text is too long

* lint: fix indent
2023-05-07 16:05:40 +02:00
renovate[bot]
2e6d069136
chore(deps): update dependency gradle to v8.1 (#332)
* Update dependency gradle to v8.1

* fix: remove @Suppress("DSL_SCOPE_VIOLATION") from build.gradle files

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
2023-04-15 01:01:41 +02:00
renovate[bot]
22542614cd
chore(deps): update android-plugin to v8 (major) (#333)
* Update android-plugin to v8

* ci: upgrade to java 17

* fix: transitive R classes and buildconfig

* lint: fix ktlint issues

* lint: fix ktlint issues

* lint: fix ktlint issues

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jarnedemeulemeester <jarnedemeulemeester@gmail.com>
2023-04-15 00:43:42 +02:00
Ido
615ddcde57 chore(translate): (Hebrew)
Currently translated at 100.0% (5 of 5 strings)

Translation: Findroid/player:video
Translate-URL: https://weblate.jdtech.dev/projects/findroid/playervideo/he/
2023-03-29 18:27:49 +02:00
Ido
996262b4e0 chore(translate): add (Hebrew) 2023-03-28 16:02:20 +02:00
DualScorch
19741f2c35 chore(translate): (Swedish)
Currently translated at 100.0% (5 of 5 strings)

Translation: Findroid/player:video
Translate-URL: https://weblate.jdtech.dev/projects/findroid/playervideo/sv/
2023-03-12 15:27:49 +01:00
DualScorch
017b224fb9 chore(translate): add (Swedish) 2023-03-11 14:41:27 +01:00
Faywyrr
01d8c11a2c
feat: scrubbing preview (#295)
* Scrubbing Preview

Add Jellyscrub plugin support

* Fix syntax

* Some adjustments

Rounded corners
Fix switch

* refactor: switch to `StateFlow`

* refactor: remove `FrameLayout`

* refactor: move trick play retrieval to `onMediaItemTransition`

Only load trick play data for current item
Make it async

---------

Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
2023-02-21 19:46:00 +01:00
renovate[bot]
1a8e71a8a9
Update androidx-media3 to v1.0.0-rc01 (#296)
* Update androidx-media3 to v1.0.0-rc01

* fix: add new arguments to `seekTo` method

* lint: run ktlintFormat

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
2023-02-18 12:22:13 +01:00
renovate[bot]
86abe204f9
Update dependency gradle to v8 (#289)
* Update dependency gradle to v8

* fix: add compatibility with AGP 7.4 and remove some kotlin jvmTarget

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
2023-02-13 21:58:05 +01:00
Jarne Demeulemeester
3c2b751df2
lint: fix errors 2023-02-11 12:09:51 +01:00
js6pak
5f7b7eaf63
Add CI (#236)
* Create main.yml

* Run ktlintFormat

* Don't error on translation lint issues

* Fix lint error about POST_NOTIFICATIONS permission

* Increase memory limit to speedup the build

* Only build debug

* refactor: rename `main.yml` to `build.yaml`

* lint: error on `ExtraTranslation`

---------

Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
2023-02-11 12:01:02 +01:00
Jarne Demeulemeester
9133b2a273
fix: playback progress is not saved when leaving player 2023-02-08 01:05:21 +01:00
Pysta
8500ef1fae Translated using Weblate (Slovak)
Currently translated at 100.0% (5 of 5 strings)

Translation: Findroid/player:video
Translate-URL: https://weblate.jdtech.dev/projects/findroid/playervideo/sk/
2023-02-06 13:01:09 +01:00
MrDog210
1a746af4a7 Translated using Weblate (Slovenian)
Currently translated at 100.0% (5 of 5 strings)

Translation: Findroid/player:video
Translate-URL: https://weblate.jdtech.dev/projects/findroid/playervideo/sl/
2023-02-06 13:01:09 +01:00
MrDog210
e3436230c5 Added translation using Weblate (Slovenian) 2023-02-05 12:49:38 +01:00
Jarne Demeulemeester
7b5745acf1
fix(mpv): memory leak, stuck loading icon, anr, deprecated methods (#273)
* fix: memory leak and stuck loading icon

Also replace deprecated audio focus methods

* fix: use global scope for posting playback stopped

This fixes ANRs that people are having when leaving the player
2023-02-05 01:15:43 +01:00
Pysta
dff297513a Added translation using Weblate (Slovak) 2023-02-04 13:16:56 +01:00
cd16b
7b6c3f8dce Translated using Weblate (Italian)
Currently translated at 100.0% (5 of 5 strings)

Translation: Findroid/player:video
Translate-URL: https://weblate.jdtech.dev/projects/findroid/playervideo/it/
2023-02-03 15:01:09 +01:00
NickSkier
8d32260d61 Translated using Weblate (Russian)
Currently translated at 100.0% (5 of 5 strings)

Translation: Findroid/player:video
Translate-URL: https://weblate.jdtech.dev/projects/findroid/playervideo/ru/
2023-02-01 04:01:13 +01:00
Jcuhfehl
776ba29e69
Fix resuming streamed content (#257)
* Fix resuming streamed content

* Remove debug log statement
2023-01-31 21:19:06 +01:00
efflux
e899a977ab Translated using Weblate (Hungarian)
Currently translated at 100.0% (5 of 5 strings)

Translation: Findroid/player:video
Translate-URL: https://weblate.jdtech.dev/projects/findroid/playervideo/hu/
2023-01-30 21:39:02 +01:00
Meguro
ef25909f4f Translated using Weblate (Vietnamese)
Currently translated at 100.0% (5 of 5 strings)

Translation: Findroid/player:video
Translate-URL: https://weblate.jdtech.dev/projects/findroid/playervideo/vi/
2023-01-30 20:13:01 +01:00
Meguro
232c678b4d Added translation using Weblate (Vietnamese) 2023-01-30 15:59:24 +01:00
Jarne Demeulemeester
0f03261ecc
Enable HLS playback in ExoPlayer (#254) 2023-01-28 22:46:13 +01:00
Jarne Demeulemeester
352a418d20
Follow "Play next episode automatically" from user playback settings (#245)
* Add getUserConfiguration and use it in episodeToPlayerItems

* Add a TODO to move user config to separate class
2023-01-28 15:21:26 +01:00
Jarne Demeulemeester
6e5e3f0788
Fix mpv player crashing on exiting the player when the file has finished playing (#251) 2023-01-28 14:44:48 +01:00
Jcuhfehl
8c17259072
Fix mpv in downloads (#247)
* Fix mpv in downloads

* Don't use wildcard imports

---------

Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
2023-01-27 23:05:50 +01:00
Jcuhfehl
12e743afcd
Fix playback progress on downloads when playback has already started (#243)
* Fix playback progress when playback has already started

Before, if an item had playback progress when the download was started, the player would jump to the end of the item immediately when playing from downloads.

* Fix syncing playback progress when remote is ahead

* Fix playback progress when playback has already started

Before, if an item had playback progress when the download was started, the player would jump to the end of the item immediately when playing from downloads.

* Fix syncing playback progress when remote is ahead
2023-01-26 19:28:45 +01:00
cd16b
960d3ddc26 Translated using Weblate (Italian)
Currently translated at 100.0% (5 of 5 strings)

Translation: Findroid/player:video
Translate-URL: https://weblate.jdtech.dev/projects/findroid/playervideo/it/
2023-01-24 11:01:29 +01:00
js6pak
31fd1e3fdc
Add intro skipper support (#219)
* Add intro skipper support

* Fix checking for 404

* Add back missing Intro class and dependencies due to rebase

* Add preference

* Clean up visibility logic

* Update skip intro button design

* Add proguard file to keep Serializable classes

* Move introCheck to a separate Runnable and fix Runnables are never cleaned up

* Simplify check before starting runnable

Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
2023-01-15 15:20:56 +01:00
renovate[bot]
e0f07a3a96
Update android-plugin to v7.4.0 (#233)
* Update android-plugin to v7.4.0

* Set Java version to 11

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
2023-01-14 20:21:37 +01:00
Jarne Demeulemeester
76121925d7
Modularize the codebase (#230)
* Split app into core and app:phone

* Use global versionCode and versionName

* Clean up gradle dependencies

* Use string formatting inside getString function

* Move proguard file to app:phone

* Move app_navigation and BasePlayerActivity to app:phone

* Add buildTypes to core gradle and remove buildFeatures

* Add suffix core to core namespace

* Split code into 4 more modules: data, preferences, player:core and player:video

* Clean up some gradle files

* Clean up data gradle

* Remove duplicate Constants.kt

* Use AppPreferences in more places

* Split off strings

* Remove unused animations

* Make about_libraries strings non-translatable

* Move mpv assets to player:video module

* Make AppPreferences a Singleton
2023-01-13 23:51:20 +01:00