30 Commits

Author SHA1 Message Date
evanreichard
a7d039b7c6 Backport pull request #15328 from jellyfin/release-10.11.z
fix: in optimistic locking, key off table is locked

Original-merge: b5f0199a25cc221ff86d112ed6968a5352277e32

Merged-by: crobibero <cody@robibe.ro>

Backported-by: Joshua M. Boniface <joshua@boniface.me>
2025-11-02 21:58:46 -05:00
theguymadmax
adfa520057 Backport pull request #15087 from jellyfin/release-10.11.z
Optimize WhereReferencedItemMultipleTypes filtering

Original-merge: a5bc4524d8a882efa12a17b6251894322745be78

Merged-by: crobibero <cody@robibe.ro>

Backported-by: Bond_009 <bond.009@outlook.com>
2025-10-27 15:43:10 -04:00
theguymadmax
794e1361d7
Fix contributing artist query (#14991) 2025-10-13 09:09:09 -06:00
JPVenson
54d48fa446
Fix people deduplication lookup (#14864) 2025-09-25 19:27:38 -06:00
JPVenson
a0b3e2b071
Optimize internal querying of UserData, other fixes (#14795) 2025-09-16 13:08:04 -06:00
JPVenson
f0e60a7ff3
Improve optimistic locking behavior (#14779) 2025-09-12 13:57:40 -06:00
JPVenson
310a54f090
Allow loading of Database options for DB provider (#14466) 2025-07-14 18:39:43 -06:00
Tim Eisele
c6e568692e
Fix modification checks and make sure to use UTC (#14347) 2025-06-26 17:50:37 -06:00
JPVenson
1c4c9cf733
Fix UserData cleanup task and queries (#14280) 2025-06-11 17:30:57 -06:00
JPVenson
d3ad2aec60
Feature/persistent watch data (#14262) 2025-06-09 17:14:27 -06:00
JPVenson
916e897ed2
Allow custom plugin provided database providers to be loaded (#14171) 2025-06-03 16:53:37 -06:00
JPVenson
d5672ce407
Add declarative backups for migrations (#14135) 2025-06-03 16:49:41 -06:00
JPVenson
a1d72deba2
Add multiple options for internal locking (#14047) 2025-06-03 15:15:22 -06:00
JPVenson
9456d7168f
Add partition helper (#14039) 2025-06-03 15:15:04 -06:00
JPVenson
fe2596dc0e
Add Full system backup feature (#13945) 2025-05-18 18:39:04 -06:00
Cody Robibero
e57a95e9cd Add required nuget properties 2025-04-27 18:11:22 -06:00
JPVenson
1c4b5199b8
Fix ItemValue query (#13939) 2025-04-26 19:10:54 -06:00
Tim Eisele
9092130350
Optimize migrations (#13855) 2025-04-26 09:36:17 -06:00
Tim Eisele
de3d1445c0
Fix ancestors (#13827) 2025-04-05 10:49:29 -06:00
Tim Eisele
0e7ae0e9a4
Fix indices and update of ItemValues (#13843) 2025-04-05 09:57:58 -06:00
Tim Eisele
596b635511
Cleanup extracted files (#13760)
* Cleanup extracted files

* Pagination and fixes

* Add migration for attachments to MigrateLibraryDb

* Unify attachment handling

* Don't extract again if files were already extracted

* Fix MKS attachment extraction

* Always run full extraction on mks

* Don't try to extract mjpeg streams as attachments

* Fallback to check if attachments were extracted to cache folder

* Fixup
2025-04-03 09:17:14 -06:00
Tim Eisele
0573999d5e
Import Keyframes into database (#13771)
* Migrate keyframe data into database

* Clear database table before import to handle failed migrations
2025-04-02 18:06:40 -06:00
gnattu
49ac705867
Improve dynamic HDR metadata handling (#13277)
* Add support for bitstream filter to remove dynamic hdr metadata

* Add support for ffprobe's only_first_vframe for HDR10+ detection

* Add BitStreamFilterOptionType for metadata removal check

* Map HDR10+ metadata to VideoRangeType.cs

Current implementation uses a hack that abuses the EL flag to avoid database schema changes. Should add proper field once EFCore migration is merged.

* Add more Dolby Vision Range types

Out of spec ones are problematic and should be marked as a dedicated invalid type and handled by the server to not crash the player.

Profile 7 videos should not be treated as normal HDR10 videos at all and should remove the metadata before serving.

* Remove dynamic hdr metadata when necessary

* Allow direct playback of HDR10+ videos on HDR10 clients

* Only use dovi codec tag when dovi metadata is not removed

* Handle DV Profile 7 Videos better

* Fix HDR10+ with new bitmask

* Indicate the presence of HDR10+ in HLS SUPPLEMENTAL-CODECS

* Fix Dovi 8.4 not labeled as HLG in HLS

* Fallback to dovi_rpu bsf for av1 when possible

* Fix dovi_rpu cli for av1

* Use correct EFCore db column for HDR10+

* Undo outdated migration

* Add proper hdr10+ migration

* Remove outdated migration

* Rebase to new db code

* Add migrations for Hdr10PlusPresentFlag

* Directly use bsf enum

* Add xmldocs for SupportsBitStreamFilterWithOption

* Make `VideoRangeType.Unknown` explicitly default on api models.

* Unset default for non-api model class

* Use tuples for bsf dictionary for now
2025-04-02 18:06:02 -06:00
Tim Eisele
3fc3b04daf
Rework parental ratings (#12615) 2025-03-30 21:51:54 -06:00
JPVenson
296b17bf44
Feature/backup on migration (#13754)
* Added generalised backup for migrations

* Added backup strategy to MigrateLibraryDb

* Added missing namespace

* Fix merge issues

* Fixed style issue

* change fast backup key to timestamp

* Update src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/SqliteDatabaseProvider.cs

* Update Fields

* applied review comments
2025-03-26 20:23:36 -06:00
JPVenson
42bdb22bfb Fixed namespaces 2025-03-25 16:45:00 +01:00
JPVenson
160020c551 WIP fixed namespaces 2025-03-25 15:30:22 +00:00
JPVenson
feea5af2f3 Merge remote-tracking branch 'jellyfinorigin/master' into feature/DatabaseRefactor 2025-03-01 14:16:49 +00:00
JPVenson
a6b4d124d7 Replicated changes made from #13492 2025-03-01 14:16:02 +00:00
JPVenson
44dfe554a8 Moved Database projects under /src
removed old pgsql references
2025-02-20 09:55:02 +00:00