* 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
166 lines
No EOL
4.7 KiB
JSON
166 lines
No EOL
4.7 KiB
JSON
{
|
|
"formatVersion": 1,
|
|
"database": {
|
|
"version": 2,
|
|
"identityHash": "43e0a559dd72e1a4ce8250489f90dc01",
|
|
"entities": [
|
|
{
|
|
"tableName": "servers",
|
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `name` TEXT NOT NULL, `currentServerAddressId` TEXT, `currentUserId` TEXT, PRIMARY KEY(`id`))",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "id",
|
|
"columnName": "id",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "name",
|
|
"columnName": "name",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "currentServerAddressId",
|
|
"columnName": "currentServerAddressId",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "currentUserId",
|
|
"columnName": "currentUserId",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
}
|
|
],
|
|
"primaryKey": {
|
|
"autoGenerate": false,
|
|
"columnNames": [
|
|
"id"
|
|
]
|
|
},
|
|
"indices": [],
|
|
"foreignKeys": []
|
|
},
|
|
{
|
|
"tableName": "serverAddresses",
|
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `serverId` TEXT NOT NULL, `address` TEXT NOT NULL, PRIMARY KEY(`id`), FOREIGN KEY(`serverId`) REFERENCES `servers`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "id",
|
|
"columnName": "id",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "serverId",
|
|
"columnName": "serverId",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "address",
|
|
"columnName": "address",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
}
|
|
],
|
|
"primaryKey": {
|
|
"autoGenerate": false,
|
|
"columnNames": [
|
|
"id"
|
|
]
|
|
},
|
|
"indices": [
|
|
{
|
|
"name": "index_serverAddresses_serverId",
|
|
"unique": false,
|
|
"columnNames": [
|
|
"serverId"
|
|
],
|
|
"orders": [],
|
|
"createSql": "CREATE INDEX IF NOT EXISTS `index_serverAddresses_serverId` ON `${TABLE_NAME}` (`serverId`)"
|
|
}
|
|
],
|
|
"foreignKeys": [
|
|
{
|
|
"table": "servers",
|
|
"onDelete": "CASCADE",
|
|
"onUpdate": "NO ACTION",
|
|
"columns": [
|
|
"serverId"
|
|
],
|
|
"referencedColumns": [
|
|
"id"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"tableName": "users",
|
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `name` TEXT NOT NULL, `serverId` TEXT NOT NULL, `accessToken` TEXT, PRIMARY KEY(`id`), FOREIGN KEY(`serverId`) REFERENCES `servers`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "id",
|
|
"columnName": "id",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "name",
|
|
"columnName": "name",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "serverId",
|
|
"columnName": "serverId",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "accessToken",
|
|
"columnName": "accessToken",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
}
|
|
],
|
|
"primaryKey": {
|
|
"autoGenerate": false,
|
|
"columnNames": [
|
|
"id"
|
|
]
|
|
},
|
|
"indices": [
|
|
{
|
|
"name": "index_users_serverId",
|
|
"unique": false,
|
|
"columnNames": [
|
|
"serverId"
|
|
],
|
|
"orders": [],
|
|
"createSql": "CREATE INDEX IF NOT EXISTS `index_users_serverId` ON `${TABLE_NAME}` (`serverId`)"
|
|
}
|
|
],
|
|
"foreignKeys": [
|
|
{
|
|
"table": "servers",
|
|
"onDelete": "CASCADE",
|
|
"onUpdate": "NO ACTION",
|
|
"columns": [
|
|
"serverId"
|
|
],
|
|
"referencedColumns": [
|
|
"id"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"views": [],
|
|
"setupQueries": [
|
|
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
|
|
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '43e0a559dd72e1a4ce8250489f90dc01')"
|
|
]
|
|
}
|
|
} |